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

Author: Hugh Waite <[email protected]>
Committer: Hugh Waite <[email protected]>
Date:   Mon Aug 12 11:05:55 2013 +0100

rls: Fix memory leak in rls notify.c

- xml is leaked in an error case

---

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

diff --git a/modules/rls/notify.c b/modules/rls/notify.c
index 7b5bec3..6738f91 100644
--- a/modules/rls/notify.c
+++ b/modules/rls/notify.c
@@ -1073,6 +1073,7 @@ int process_list_and_exec(xmlNodePtr list_node, str 
username, str domain,
                        else
                        {
                                LM_ERR("unable to parse URI for 
<resource-list/>\n");
+                               xmlFree(uri.s);
                                return -1;
                        }
                }


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to