Rob Shearman : ole32: Fix a memory leak in an error path in COMPOBJ_DllList_Add.
Alexandre Julliard
julliard at winehq.org
Mon Mar 9 09:40:24 CDT 2009
Module: wine
Branch: master
Commit: d974922698eb788d6ee52f134616f3c618063c42
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d974922698eb788d6ee52f134616f3c618063c42
Author: Rob Shearman <robertshearman at gmail.com>
Date: Sat Mar 7 21:54:27 2009 +0000
ole32: Fix a memory leak in an error path in COMPOBJ_DllList_Add.
---
dlls/ole32/compobj.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index b8ddba8..711f341 100644
--- a/dlls/ole32/compobj.c
+++ b/dlls/ole32/compobj.c
@@ -934,6 +934,7 @@ static HRESULT COMPOBJ_DllList_Add(LPCWSTR library_name, OpenDll **ret)
}
else
{
+ HeapFree(GetProcessHeap(), 0, entry);
hr = E_OUTOFMEMORY;
FreeLibrary(hLibrary);
}
More information about the wine-cvs
mailing list