|
@@ -1160,6 +1160,7 @@ inline static int w_t_forward_nonack_to( struct sip_msg *p_msg ,
|
|
|
if (proxy) {
|
|
|
r = _w_t_forward_nonack(p_msg, proxy, proxy->proto);
|
|
|
free_proxy(proxy);
|
|
|
+ pkg_free(proxy);
|
|
|
}
|
|
|
return r;
|
|
|
}
|
|
@@ -1390,6 +1391,7 @@ inline static int w_t_relay_to_avp( struct sip_msg *p_msg ,
|
|
|
if (proxy) {
|
|
|
r = _w_t_relay_to(p_msg, proxy, PROTO_NONE);
|
|
|
free_proxy(proxy);
|
|
|
+ pkg_free(proxy);
|
|
|
}
|
|
|
return r;
|
|
|
}
|
|
@@ -1424,6 +1426,7 @@ inline static int w_t_replicate_uri(struct sip_msg *msg ,
|
|
|
|
|
|
r = t_replicate(msg, proxy, proxy->proto);
|
|
|
free_proxy(proxy);
|
|
|
+ pkg_free(proxy);
|
|
|
return r;
|
|
|
|
|
|
}
|
|
@@ -1481,8 +1484,9 @@ inline static int w_t_replicate_to( struct sip_msg *p_msg ,
|
|
|
int r = -1;
|
|
|
proxy = t_protoaddr2proxy(proto_par, addr_par);
|
|
|
if (proxy) {
|
|
|
- r = t_replicate(p_msg, proxy, proxy->proto);
|
|
|
+ r = t_replicate(p_msg, proxy, proxy->proto);
|
|
|
free_proxy(proxy);
|
|
|
+ pkg_free(proxy);
|
|
|
}
|
|
|
return r;
|
|
|
}
|