Skip to content
Snippets Groups Projects
Commit 1238edae authored by Quinn Slack's avatar Quinn Slack Committed by Daniel Stenberg
Browse files

SSL: fix memory leak

In OOM situation. Follow-up fix to commit a9cd4f4e.
parent a9cd4f4e
No related branches found
No related tags found
No related merge requests found
......@@ -350,8 +350,11 @@ CURLcode Curl_ssl_addsessionid(struct connectdata *conn,
store->name = clone_host; /* clone host name */
store->remote_port = conn->remote_port; /* port number */
if(!Curl_clone_ssl_config(&conn->ssl_config, &store->ssl_config))
if(!Curl_clone_ssl_config(&conn->ssl_config, &store->ssl_config)) {
store->sessionid = NULL; /* let caller free sessionid */
free(clone_host);
return CURLE_OUT_OF_MEMORY;
}
return CURLE_OK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment