From 60435135f9bb497874256202285565ce83b981a9 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 20 Oct 2008 00:15:13 +0200 Subject: [PATCH] secur32: Don't leak the credentials handle when pgnutls_certificate_allocate_credentials() fails. --- dlls/secur32/schannel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c index 63918771d8..1c76873a4d 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; }