Nikolay Sivov : ole32: Fix a memory leak caused by copy/pasted fragment ( Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Dec 9 13:41:29 CST 2013
Module: wine
Branch: master
Commit: 5f66fb4febe0b82c9fd8333b3c9cf4123b631a25
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5f66fb4febe0b82c9fd8333b3c9cf4123b631a25
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat Dec 7 10:09:28 2013 +0400
ole32: Fix a memory leak caused by copy/pasted fragment (Coverity).
---
dlls/ole32/comcat.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/dlls/ole32/comcat.c b/dlls/ole32/comcat.c
index b8dcc53..46a722e 100644
--- a/dlls/ole32/comcat.c
+++ b/dlls/ole32/comcat.c
@@ -1346,9 +1346,6 @@ static HRESULT CATIDEnumGUID_Construct(REFCLSID rclsid, LPCWSTR postfix, IEnumGU
WCHAR keyname[100], clsidW[CHARS_IN_GUID];
CATID_IEnumGUIDImpl *This;
- This = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(CATID_IEnumGUIDImpl));
- if (!This) return E_OUTOFMEMORY;
-
*ret = NULL;
This = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(CATID_IEnumGUIDImpl));
More information about the wine-cvs
mailing list