Module: kamailio
Branch: master
Commit: fce9044ece62d6b5e81330de62fa1fa402145e68
URL:
https://github.com/kamailio/kamailio/commit/fce9044ece62d6b5e81330de62fa1fa…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-30T14:15:55+02:00
http_client: move to next field before freeing item in fixup function
---
Modified: src/modules/http_client/curlcon.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fce9044ece62d6b5e81330de62fa1fa…
Patch:
https://github.com/kamailio/kamailio/commit/fce9044ece62d6b5e81330de62fa1fa…
---
diff --git a/src/modules/http_client/curlcon.c b/src/modules/http_client/curlcon.c
index cc5c9ed497..8e73200f0e 100644
--- a/src/modules/http_client/curlcon.c
+++ b/src/modules/http_client/curlcon.c
@@ -679,6 +679,7 @@ int fixup_raw_http_client_conn_list(void)
while (raw_conn_list != NULL)
{
raw_cc = raw_conn_list;
+ raw_conn_list = raw_conn_list->next;
if (raw_cc->name.s) pkg_free(raw_cc->name.s);
if (raw_cc->url.s) pkg_free(raw_cc->url.s);
if (raw_cc->username.s) pkg_free(raw_cc->username.s);
@@ -690,7 +691,6 @@ int fixup_raw_http_client_conn_list(void)
if (raw_cc->ciphersuites.s) pkg_free(raw_cc->ciphersuites.s);
if (raw_cc->http_proxy.s) pkg_free(raw_cc->http_proxy.s);
pkg_free(raw_cc);
- raw_conn_list = raw_conn_list->next;
}
return ret;
}