Module: kamailio
Branch: master
Commit: e1e82d25cdf7103f66441f2c4fa5ff6c4c117370
URL:
https://github.com/kamailio/kamailio/commit/e1e82d25cdf7103f66441f2c4fa5ff6…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: GitHub <noreply(a)github.com>
Date: 2017-01-24T11:31:52Z
Merge pull request #947 from kamailio/lazedo-patch-4
presence: free pointer after usage
---
Modified: src/modules/presence/notify.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e1e82d25cdf7103f66441f2c4fa5ff6…
Patch:
https://github.com/kamailio/kamailio/commit/e1e82d25cdf7103f66441f2c4fa5ff6…
---
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;