Henri Verbeet : secur32: Don' t leak the credentials handle when pgnutls_certificate_allocate_credentials () fails.
Alexandre Julliard
julliard at winehq.org
Mon Oct 20 08:00:38 CDT 2008
Module: wine
Branch: master
Commit: 60435135f9bb497874256202285565ce83b981a9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=60435135f9bb497874256202285565ce83b981a9
Author: Henri Verbeet <hverbeet at gmail.com>
Date: Mon Oct 20 00:15:13 2008 +0200
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;
}
More information about the wine-cvs
mailing list