Skip to content

Commit

Permalink
digest: fix memory leak, fix not quoted 'opaque'
Browse files Browse the repository at this point in the history
Fix leak regression introduced by 3a6fe0c.

Closes #9199
  • Loading branch information
Karlson2k authored and jay committed Jul 25, 2022
1 parent 6fa89fa commit 6e241bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vauth/digest.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,8 +880,9 @@ static CURLcode auth_create_digest_http_message(
free(response);
return CURLE_OUT_OF_MEMORY;
}
tmp = aprintf("%s, opaque=\"%s\"", response, digest->opaque);
tmp = aprintf("%s, opaque=\"%s\"", response, opaque_quoted);
free(response);
free(opaque_quoted);
if(!tmp)
return CURLE_OUT_OF_MEMORY;

Expand Down

0 comments on commit 6e241bb

Please sign in to comment.