Skip to content

Commit

Permalink
http_client: move to next field before freeing item in fixup function
Browse files Browse the repository at this point in the history
(cherry picked from commit fce9044)
  • Loading branch information
miconda committed Aug 29, 2017
1 parent efee462 commit db0e94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/http_client/curlcon.c
Expand Up @@ -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);
Expand All @@ -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;
}
Expand Down

0 comments on commit db0e94f

Please sign in to comment.