[sr-dev] git:3.2: modules_k/rls: Fixed memory leak in process_list_and_exec()
Peter Dunkley
peter.dunkley at crocodile-rcs.com
Tue Jan 24 18:53:19 CET 2012
Module: sip-router
Branch: 3.2
Commit: 6acddd35953c7a75d04d03f7a8c177beb08c2a57
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6acddd35953c7a75d04d03f7a8c177beb08c2a57
Author: pd <peter.dunkley at crocodile-rcs.com>
Committer: pd <peter.dunkley at crocodile-rcs.com>
Date: Tue Jan 24 17:34:52 2012 +0000
modules_k/rls: Fixed memory leak in process_list_and_exec()
- xmlFree was called on rl_doc, but xmlFreeDoc should have been called
- Found and fixed by Paul Pankhurst @ Crocodile RCS
(cherry picked from commit ca938a37c87782c709b441c682f723d07b05c64c)
---
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 b9bad7f..d9a1397 100644
--- a/modules_k/rls/notify.c
+++ b/modules_k/rls/notify.c
@@ -979,7 +979,7 @@ int process_list_and_exec(xmlNodePtr list_node, str username, str domain,
LM_DBG("calling myself for rl_node\n");
res = process_list_and_exec(rl_node, username, domain, function, param);
xmlFree(uri);
- xmlFree(rl_doc);
+ xmlFreeDoc(rl_doc);
}
else
{
More information about the sr-dev
mailing list