[sr-dev] git:4.2:b7657fde: core: parse_add_spec() free params in case of parsing failure
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jan 15 20:21:18 CET 2015
Module: kamailio
Branch: 4.2
Commit: b7657fde6c74673060e1d59e604c1b72ca284dbf
URL: https://github.com/kamailio/kamailio/commit/b7657fde6c74673060e1d59e604c1b72ca284dbf
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/b7657fde6c74673060e1d59e604c1b72ca284dbf.diff
Patch: https://github.com/kamailio/kamailio/commit/b7657fde6c74673060e1d59e604c1b72ca284dbf.patch
---
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;
More information about the sr-dev
mailing list