1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

http_digest: Fixed memory leaks from commit 6f8d8131b1

This commit is contained in:
Steve Holme 2014-11-05 21:33:33 +00:00
parent f4af38120a
commit 783c7f97ba

View File

@ -154,6 +154,7 @@ CURLcode Curl_output_digest(struct connectdata *conn,
*allocuserpwd = aprintf("%sAuthorization: Digest %s\r\n", *allocuserpwd = aprintf("%sAuthorization: Digest %s\r\n",
proxy ? "Proxy-" : "", proxy ? "Proxy-" : "",
response); response);
free(response);
if(!*allocuserpwd) if(!*allocuserpwd)
return CURLE_OUT_OF_MEMORY; return CURLE_OUT_OF_MEMORY;