mirror of
https://github.com/curl/curl.git
synced 2026-07-24 10:57:16 +03:00
sasl_gssapi: Fixed memory leak with local SPN variable
This commit is contained in:
parent
3a9419f65a
commit
b9fd757d03
1 changed files with 4 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue