diff options
-rw-r--r-- | lib/curl_sasl_gssapi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/curl_sasl_gssapi.c b/lib/curl_sasl_gssapi.c index d8f811961..cee00e10a 100644 --- a/lib/curl_sasl_gssapi.c +++ b/lib/curl_sasl_gssapi.c @@ -122,8 +122,12 @@ CURLcode Curl_sasl_create_gssapi_user_message(struct SessionHandle *data, if(GSS_ERROR(gss_major_status)) { Curl_gss_log_error(data, gss_minor_status, "gss_import_name() failed: "); + Curl_safefree(spn); + return CURLE_OUT_OF_MEMORY; } + + Curl_safefree(spn); } else { /* Decode the base-64 encoded challenge message */ |