secur32: Don't leak the credentials handle when pgnutls_certificate_allocate_credentials() fails.

This commit is contained in:
Henri Verbeet 2008-10-20 00:15:13 +02:00 committed by Alexandre Julliard
parent f6129d7d35
commit 60435135f9

View File

@ -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;
}