瀏覽代碼

textops: cleanup on error parsing methods at startup

Daniel-Constantin Mierla 11 年之前
父節點
當前提交
cee4b58e17
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/textops/textops.c

+ 1 - 0
modules/textops/textops.c

@@ -1740,6 +1740,7 @@ static int fixup_method(void** param, int param_no)
 		{
 			LM_ERR("unknown method in list [%.*s/%d] - must be only defined methods\n",
 				s->len, s->s, method);
+			pkg_free(s);
 			return E_UNSPEC;
 		}
 		LM_DBG("using id for methods [%.*s/%d]\n",