[sr-dev] git:master: modules_k/rls: Fixed memory leak in RLS

Peter Dunkley peter.dunkley at crocodile-rcs.com
Wed Aug 8 13:06:44 CEST 2012


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

Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date:   Wed Aug  8 12:05:44 2012 +0100

modules_k/rls: Fixed memory leak in RLS

- Leak only happens when there is more than one Record-Route: header
- Fixed by Hugh Waite @ Crocodile RCS

---

 modules_k/rls/notify.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/rls/notify.c b/modules_k/rls/notify.c
index b923add..c8eb230 100644
--- a/modules_k/rls/notify.c
+++ b/modules_k/rls/notify.c
@@ -760,7 +760,7 @@ void rls_free_td(dlg_t* td)
 			pkg_free(td->rem_uri.s);
 
 		if(td->route_set)
-			pkg_free(td->route_set); 
+			free_rr(&td->route_set); 
 
 		pkg_free(td);
 	}	




More information about the sr-dev mailing list