Module: kamailio
Branch: master
Commit: ffa2aa438e2a13e6e8bdbe70dd90827ae18279ce
URL:
https://github.com/kamailio/kamailio/commit/ffa2aa438e2a13e6e8bdbe70dd90827…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-06-25T23:04:00+02:00
sanity: free parsed proxy-required header in case of failure
- reported by GH #1990
---
Modified: src/modules/sanity/sanity.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ffa2aa438e2a13e6e8bdbe70dd90827…
Patch:
https://github.com/kamailio/kamailio/commit/ffa2aa438e2a13e6e8bdbe70dd90827…
---
diff --git a/src/modules/sanity/sanity.c b/src/modules/sanity/sanity.c
index d00eab5d6d..04ad2b86d6 100644
--- a/src/modules/sanity/sanity.c
+++ b/src/modules/sanity/sanity.c
@@ -698,6 +698,10 @@ int check_proxy_require(sip_msg_t* msg) {
}
LM_DBG("checking proxy require failed\n");
if (u) pkg_free(u);
+ if (msg->proxy_require->parsed) {
+ free_str_list(msg->proxy_require->parsed);
+ msg->proxy_require->parsed = NULL;
+ }
return SANITY_CHECK_FAILED;
}
else {