Module: kamailio
Branch: master
Commit: 5a71429596851d8096de1abe5542e57e8b8f6547
URL:
https://github.com/kamailio/kamailio/commit/5a71429596851d8096de1abe5542e57…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-01-15T13:42:13+01:00
core: parse_add_spec() free params in case of parsing failure
---
Modified: parser/parse_addr_spec.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5a71429596851d8096de1abe5542e57…
Patch:
https://github.com/kamailio/kamailio/commit/5a71429596851d8096de1abe5542e57…
---
diff --git a/parser/parse_addr_spec.c b/parser/parse_addr_spec.c
index f0388a2..c943bf9 100644
--- a/parser/parse_addr_spec.c
+++ b/parser/parse_addr_spec.c
@@ -913,6 +913,7 @@ char* parse_addr_spec(char* const buffer, const char* const end,
struct to_body*
return tmp;
error:
+ free_to_params(to_b);
to_b->error=PARSE_ERROR;
return tmp;