Module: sip-router
Branch: 4.0
Commit: d3be7fa1c47d12a1eb6e725729c6a0a2e481bc63
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d3be7fa…
Author: Hugh Waite <hugh.waite(a)crocodile-rcs.com>
Committer: Hugh Waite <hugh.waite(a)crocodile-rcs.com>
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;
}
}