sasl_gssapi: Fixed memory leak with local SPN variable

This commit is contained in:
Steve Holme 2015-01-18 17:02:55 +00:00
parent 3a9419f65a
commit b9fd757d03

View File

@ -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 */