浏览代码

rls: Fix memory leak in rls notify.c

- xml is leaked in an error case
Hugh Waite 12 年之前
父节点
当前提交
4f42993660
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
 			}
 		}