[sr-dev] git:master: tm: free from and to display names that can be set for local request from seas module

Daniel-Constantin Mierla miconda at gmail.com
Mon Jan 20 17:25:44 CET 2014


Module: sip-router
Branch: master
Commit: 1b53001ad3ad1e9bfd3e64f8e03c35d4e5f54e8d
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1b53001ad3ad1e9bfd3e64f8e03c35d4e5f54e8d

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon Jan 20 17:24:18 2014 +0100

tm: free from and to display names that can be set for local request from seas module

- reported and patch by Ziad Habchi

---

 modules/tm/dlg.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/tm/dlg.c b/modules/tm/dlg.c
index 647e34f..05e7d48 100644
--- a/modules/tm/dlg.c
+++ b/modules/tm/dlg.c
@@ -1216,6 +1216,9 @@ void free_dlg(dlg_t* _d)
 	if (_d->rem_target.s) shm_free(_d->rem_target.s);
 	if (_d->dst_uri.s) shm_free(_d->dst_uri.s);
 
+	if (_d->loc_dname.s) shm_free(_d->loc_dname.s);
+	if (_d->rem_dname.s) shm_free(_d->rem_dname.s);
+
 	     /* Free all routes in the route set */
 	shm_free_rr(&_d->route_set);
 	shm_free(_d);




More information about the sr-dev mailing list