Alistair Leslie-Hughes : secur32: Stop memory leak (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Mar 4 15:08:25 CST 2019
Module: wine
Branch: master
Commit: fb78d19881236306bfa30120ee84065cff29c4ab
URL: https://source.winehq.org/git/wine.git/?a=commit;h=fb78d19881236306bfa30120ee84065cff29c4ab
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Sun Mar 3 22:05:19 2019 +0000
secur32: Stop memory leak (Coverity).
CID 1442946
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/secur32/schannel_gnutls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/secur32/schannel_gnutls.c b/dlls/secur32/schannel_gnutls.c
index 7c6bb96..8ac5bee 100644
--- a/dlls/secur32/schannel_gnutls.c
+++ b/dlls/secur32/schannel_gnutls.c
@@ -668,6 +668,7 @@ static BYTE *get_key_blob(const CERT_CONTEXT *ctx, ULONG *size)
heap_free(path);
return NULL;
}
+ heap_free(path);
if (!RegQueryValueExW(hkey, keyexchangeW, 0, &type, NULL, &len)) spec = AT_KEYEXCHANGE;
else if (!RegQueryValueExW(hkey, signatureW, 0, &type, NULL, &len)) spec = AT_SIGNATURE;
@@ -699,7 +700,6 @@ static BYTE *get_key_blob(const CERT_CONTEXT *ctx, ULONG *size)
else heap_free(buf);
RegCloseKey(hkey);
- heap_free(path);
return ret;
}
More information about the wine-cvs
mailing list