Module: sip-router
Branch: master
Commit: 7611a9595349d4978080efab0ed09b123b0f3cce
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7611a95…
Author: Richard Good <richard.good(a)smilecoms.com>
Committer: Richard Good <richard.good(a)smilecoms.com>
Date: Thu Feb 13 09:37:37 2014 +0200
modules/ims_registrar_pcscf: fixed pkg_mem leak when sending subscribe
---
modules/ims_registrar_pcscf/notify.c | 1 +
modules/ims_registrar_pcscf/save.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/ims_registrar_pcscf/notify.c b/modules/ims_registrar_pcscf/notify.c
index 67f03ac..9b2973e 100644
--- a/modules/ims_registrar_pcscf/notify.c
+++ b/modules/ims_registrar_pcscf/notify.c
@@ -268,6 +268,7 @@ int process_body(struct sip_msg* msg, str notify_body, udomain_t *
domain) {
LM_ERR("wrong format[%.*s] - failed unsubscribing to reginfo\n",aor.len,
aor.s);
}
reginfo_subscribe_real(msg, presentity_uri_pv, 0, 0);
+ pv_elem_free_all(presentity_uri_pv);
}
/* Now lets process the Contact's from this Registration: */
diff --git a/modules/ims_registrar_pcscf/save.c b/modules/ims_registrar_pcscf/save.c
index d56b8ce..e9bcd7d 100644
--- a/modules/ims_registrar_pcscf/save.c
+++ b/modules/ims_registrar_pcscf/save.c
@@ -395,6 +395,7 @@ int save(struct sip_msg* _m, udomain_t* _d, int _cflags) {
}
reginfo_subscribe_real(_m, presentity_uri_pv, service_routes,
subscription_expires);
+ pv_elem_free_all(presentity_uri_pv);
}
done: