[sr-dev] git:master: modules_k/rls: Fixed memory leak in process_list_and_exec()

Peter Dunkley peter.dunkley at crocodile-rcs.com
Tue Jan 24 18:40:53 CET 2012


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

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

---

 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 d73cf0b..00240f9 100644
--- a/modules_k/rls/notify.c
+++ b/modules_k/rls/notify.c
@@ -1008,7 +1008,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