[PATCH] oleaut32: avoid a library handle leak (Coverity)
Marcus Meissner
marcus at jet.franken.de
Wed May 6 10:31:27 CDT 2015
713631 Resource leak
---
dlls/oleaut32/olepropframe.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/oleaut32/olepropframe.c b/dlls/oleaut32/olepropframe.c
index b89d3a6..73af745 100644
--- a/dlls/oleaut32/olepropframe.c
+++ b/dlls/oleaut32/olepropframe.c
@@ -210,6 +210,7 @@ HRESULT WINAPI OleCreatePropertyFrameIndirect(LPOCPFIPARAMS lpParams)
if(property_sheet_dialog_data) {
if(property_sheet_dialog_data[1] == 0xffff) {
ERR("Expected DLGTEMPLATE structure\n");
+ FreeLibrary(hcomctl);
return E_OUTOFMEMORY;
}
--
1.8.4.5
More information about the wine-patches
mailing list