Skip to content

Commit 821cba8

Browse files
x2018bagder
authored andcommitted
digest_sspi: fix a memory leak on error path
Closes curl#19567
1 parent 11c0aaa commit 821cba8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/vauth/digest_sspi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ CURLcode Curl_auth_create_digest_http_message(struct Curl_easy *data,
583583
/* Allocate our new context handle */
584584
digest->http_context = calloc(1, sizeof(CtxtHandle));
585585
if(!digest->http_context) {
586+
Curl_pSecFn->FreeCredentialsHandle(&credentials);
586587
curlx_unicodefree(spn);
587588
Curl_sspi_free_identity(p_identity);
588589
free(output_token);

0 commit comments

Comments
 (0)