]> granicus.if.org Git - curl/commitdiff
http_digest: Fixed memory leaks from commit 6f8d8131b1
authorSteve Holme <steve_holme@hotmail.com>
Wed, 5 Nov 2014 21:33:33 +0000 (21:33 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 5 Nov 2014 21:45:10 +0000 (21:45 +0000)
lib/http_digest.c

index 75251a8b6d4647ba0bce6cfc7d45f6bb4c944e6d..a75ca9d59b3ebc23aefc7586f764c73b6e9621c4 100644 (file)
@@ -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;