Module: kamailio
Branch: master
Commit: dc518f6973f81b71264036b138dd6293eef58ed2
URL:
https://github.com/kamailio/kamailio/commit/dc518f6973f81b71264036b138dd629…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: GitHub <noreply(a)github.com>
Date: 2017-01-24T02:58:54Z
presence: free pointer after usage
discovered when using tlsf memory manager.
---
Modified: src/modules/presence/notify.c
---
Diff:
https://github.com/kamailio/kamailio/commit/dc518f6973f81b71264036b138dd629…
Patch:
https://github.com/kamailio/kamailio/commit/dc518f6973f81b71264036b138dd629…
---
diff --git a/src/modules/presence/notify.c b/src/modules/presence/notify.c
index 18e5ce0..caf5a3d 100644
--- a/src/modules/presence/notify.c
+++ b/src/modules/presence/notify.c
@@ -997,9 +997,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;