Module: sip-router
Branch: 3.3
Commit: 25c6efc8d245c339c77748f93c222188769a7be8
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=25c6efc…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)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
(cherry picked from commit c1240aa21a534f1c1a5bdaaebd9c29fe4984a4bb)
---
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);
}