]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
digest_sspi: properly free sspi identity
authorx2018 <xkernel.wang@foxmail.com>
Sun, 9 Nov 2025 17:44:27 +0000 (01:44 +0800)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 10 Nov 2025 08:20:26 +0000 (09:20 +0100)
Closes #19426

lib/vauth/digest_sspi.c

index 9441ee26fcca1c056ea969db0f9a850c75f2a28b..f04c3845abe96a0e9e00881bd02d0e00875cbd15 100644 (file)
@@ -502,6 +502,7 @@ CURLcode Curl_auth_create_digest_http_message(struct Curl_easy *data,
       /* Populate our identity domain */
       if(Curl_override_sspi_http_realm((const char *) digest->input_token,
                                        &identity)) {
+        Curl_sspi_free_identity(&identity);
         free(output_token);
         return CURLE_OUT_OF_MEMORY;
       }