From: Steve Holme Date: Wed, 5 Nov 2014 21:33:33 +0000 (+0000) Subject: http_digest: Fixed memory leaks from commit 6f8d8131b1 X-Git-Tag: curl-7_40_0~440 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=783c7f97ba4d499e26c96e9726d2af912f612bec;p=thirdparty%2Fcurl.git http_digest: Fixed memory leaks from commit 6f8d8131b1 --- diff --git a/lib/http_digest.c b/lib/http_digest.c index 75251a8b6d..a75ca9d59b 100644 --- a/lib/http_digest.c +++ b/lib/http_digest.c @@ -154,6 +154,7 @@ CURLcode Curl_output_digest(struct connectdata *conn, *allocuserpwd = aprintf("%sAuthorization: Digest %s\r\n", proxy ? "Proxy-" : "", response); + free(response); if(!*allocuserpwd) return CURLE_OUT_OF_MEMORY;