← Commit list

2c6505e0ef

Daniel Stenberg
Daniel Stenberg
2025-10-09
SUCCESS Duration: 181s

Subject

krb5_gssapi: fix memory leak on error path

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vauth/krb5_gssapi.c+1 -0
@@ -225,6 +225,7 @@ CURLcode Curl_auth_create_gssapi_security_message(struct Curl_easy *data,
/* Not 4 octets long so fail as per RFC4752 Section 3.1 */
if(output_token.length != 4) {
infof(data, "GSSAPI handshake failure (invalid security data)");
+ gss_release_buffer(&unused_status, &output_token);
return CURLE_BAD_CONTENT_ENCODING;
}