Module: kamailio Branch: 4.4 Commit: d3814d47ec92091dbf524bdabaa3c1fc71ed2c80 URL: https://github.com/kamailio/kamailio/commit/d3814d47ec92091dbf524bdabaa3c1fc71ed2c80
Author: lazedo <luis.az...@factorlusitano.com> Committer: Luis Azedo <l...@2600hz.com> Date: 2017-01-24T11:58:25Z presence: free pointer after usage discovered when using tlsf memory manager. (cherry picked from commit dc518f6973f81b71264036b138dd6293eef58ed2) --- Modified: modules/presence/notify.c --- Diff: https://github.com/kamailio/kamailio/commit/d3814d47ec92091dbf524bdabaa3c1fc71ed2c80.diff Patch: https://github.com/kamailio/kamailio/commit/d3814d47ec92091dbf524bdabaa3c1fc71ed2c80.patch --- diff --git a/modules/presence/notify.c b/modules/presence/notify.c index 04ee88f..9e50375 100644 --- a/modules/presence/notify.c +++ b/modules/presence/notify.c @@ -982,9 +982,8 @@ dlg_t* ps_build_dlg_t(subs_t* subs) pkg_free(tmp); goto error; } + td->send_sock = grep_sock_info (&host, (unsigned short) port, (unsigned short) proto); pkg_free(tmp); - td->send_sock = grep_sock_info ( - &host, (unsigned short) port, (unsigned short) proto); } return td; _______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev