secur32: Don't leak the credentials handle when pgnutls_certificate_allocate_credentials() fails.
This commit is contained in:
parent
f6129d7d35
commit
60435135f9
|
@ -295,6 +295,7 @@ static SECURITY_STATUS schan_AcquireClientCredentials(const SCHANNEL_CRED *schan
|
|||
if (ret != GNUTLS_E_SUCCESS)
|
||||
{
|
||||
pgnutls_perror(ret);
|
||||
schan_free_handle(handle, SCHAN_HANDLE_CRED);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue