[sr-dev] git:master:2f12d7e1: siptrace: do not free unallocated dest_info_t structure on error
Daniel-Constantin Mierla
miconda at gmail.com
Wed Apr 17 15:19:14 CEST 2019
Module: kamailio
Branch: master
Commit: 2f12d7e1b497346bb6569781dfa83a85a586b595
URL: https://github.com/kamailio/kamailio/commit/2f12d7e1b497346bb6569781dfa83a85a586b595
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/2f12d7e1b497346bb6569781dfa83a85a586b595.diff
Patch: https://github.com/kamailio/kamailio/commit/2f12d7e1b497346bb6569781dfa83a85a586b595.patch
---
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;
}
More information about the sr-dev
mailing list