Explorar o código

rls: Fix memory leak in rls notify.c

- xml is leaked in an error case
Hugh Waite %!s(int64=12) %!d(string=hai) anos
pai
achega
4f42993660
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      modules/rls/notify.c

+ 1 - 0
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;
 			}
 		}