diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/curl_sasl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c index 7d5a63d61..1edeb2017 100644 --- a/lib/curl_sasl.c +++ b/lib/curl_sasl.c @@ -1046,20 +1046,20 @@ CURLcode Curl_sasl_create_digest_http_message(struct SessionHandle *data, if(digest->opaque) { /* Append the opaque */ tmp = aprintf("%s, opaque=\"%s\"", response, digest->opaque); + free(response); if(!tmp) return CURLE_OUT_OF_MEMORY; - free(response); response = tmp; } if(digest->algorithm) { /* Append the algorithm */ tmp = aprintf("%s, algorithm=\"%s\"", response, digest->algorithm); + free(response); if(!tmp) return CURLE_OUT_OF_MEMORY; - free(response); response = tmp; } |