Module: kamailio
Branch: 4.2
Commit: b7657fde6c74673060e1d59e604c1b72ca284dbf
URL:
https://github.com/kamailio/kamailio/commit/b7657fde6c74673060e1d59e604c1b7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-01-15T20:14:20+01:00
core: parse_add_spec() free params in case of parsing failure
(cherry picked from commit 5a71429596851d8096de1abe5542e57e8b8f6547)
---
Modified: parser/parse_addr_spec.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b7657fde6c74673060e1d59e604c1b7…
Patch:
https://github.com/kamailio/kamailio/commit/b7657fde6c74673060e1d59e604c1b7…
---
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;