From c8504800c19714532655735bbb1e30840751d4b7 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 20 Oct 2008 00:15:13 +0200 Subject: secur32: Don't leak the credentials handle when pgnutls_certificate_allocate_credentials() fails. --- dlls/secur32/schannel.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c index 6391877..1c76873 100644 --- a/dlls/secur32/schannel.c +++ b/dlls/secur32/schannel.c @@ -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; } -- 1.5.6.4