Module: sip-router Branch: master Commit: cee4b58e1728be7de2c15ae25c4c1be0dd3088fb URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cee4b58e...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Mon Apr 21 21:43:59 2014 +0200
textops: cleanup on error parsing methods at startup
---
modules/textops/textops.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/textops/textops.c b/modules/textops/textops.c index 168a8ac..12bcf88 100644 --- a/modules/textops/textops.c +++ b/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",