Skip to content
Snippets Groups Projects
Commit dcad09e1 authored by Steve Holme's avatar Steve Holme
Browse files

http_digest: Fixed some memory leaks introduced in commit 6f8d8131

Fixed a couple of memory leaks as a result of moving code that used to
populate allocuserpwd and relied on it's clean up.
parent 338b6413
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
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