[sr-dev] git:4.4:d3814d47: presence: free pointer after usage
Luis Azedo
luis at 2600hz.com
Tue Jan 24 12:58:58 CET 2017
Module: kamailio
Branch: 4.4
Commit: d3814d47ec92091dbf524bdabaa3c1fc71ed2c80
URL: https://github.com/kamailio/kamailio/commit/d3814d47ec92091dbf524bdabaa3c1fc71ed2c80
Author: lazedo <luis.azedo at factorlusitano.com>
Committer: Luis Azedo <luis at 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;
More information about the sr-dev
mailing list