Browse Source

textops: cleanup on error parsing methods at startup

Daniel-Constantin Mierla 11 years ago
parent
commit
cee4b58e17
1 changed files with 1 additions and 0 deletions
  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",