From: x2018 Date: Mon, 17 Nov 2025 11:37:35 +0000 (+0800) Subject: digest_sspi: fix a memory leak on error path X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=821cba8facfea8394b4e9f9401700758cd0a63e3;p=thirdparty%2Fcurl.git digest_sspi: fix a memory leak on error path Closes #19567 --- diff --git a/lib/vauth/digest_sspi.c b/lib/vauth/digest_sspi.c index f04c3845ab..f730c52987 100644 --- a/lib/vauth/digest_sspi.c +++ b/lib/vauth/digest_sspi.c @@ -583,6 +583,7 @@ CURLcode Curl_auth_create_digest_http_message(struct Curl_easy *data, /* Allocate our new context handle */ digest->http_context = calloc(1, sizeof(CtxtHandle)); if(!digest->http_context) { + Curl_pSecFn->FreeCredentialsHandle(&credentials); curlx_unicodefree(spn); Curl_sspi_free_identity(p_identity); free(output_token);