Browse Source

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
pd 13 năm trước cách đây
mục cha
commit
ca938a37c8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules_k/rls/notify.c

+ 1 - 1
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
 					{