Module: kamailio
Branch: master
Commit: 2f12d7e1b497346bb6569781dfa83a85a586b595
URL:
https://github.com/kamailio/kamailio/commit/2f12d7e1b497346bb6569781dfa83a8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-04-17T15:12:17+02:00
siptrace: do not free unallocated dest_info_t structure on error
---
Modified: src/modules/siptrace/siptrace.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2f12d7e1b497346bb6569781dfa83a8…
Patch:
https://github.com/kamailio/kamailio/commit/2f12d7e1b497346bb6569781dfa83a8…
---
diff --git a/src/modules/siptrace/siptrace.c b/src/modules/siptrace/siptrace.c
index e3ddfeda76..df848c7ad2 100644
--- a/src/modules/siptrace/siptrace.c
+++ b/src/modules/siptrace/siptrace.c
@@ -800,7 +800,6 @@ static int parse_siptrace_uri(str* duri, dest_info_t* dst)
p = mk_proxy(&uri.host, (uri.port_no) ? uri.port_no : SIP_PORT, dst->proto);
if(p == 0) {
LM_ERR("bad host name in uri\n");
- pkg_free(dst);
return -1;
}