Explorar el Código

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 hace 13 años
padre
commit
ca938a37c8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 					{