oleaut32: Fix outstanding memory leak (coverity)
André Hentschel
nerv at dawncrow.de
Sat Nov 10 08:56:58 CST 2012
---
dlls/oleaut32/typelib.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index cb179f9..5850520 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -4079,6 +4079,7 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength)
pTIHeader = pBlk;
if(pTIHeader->magic != SLTG_TIHEADER_MAGIC) {
FIXME_(typelib)("TypeInfoHeader magic = %04x\n", pTIHeader->magic);
+ heap_free(pOtherTypeInfoBlks);
return NULL;
}
TRACE_(typelib)("pTIHeader->res06 = %x, pTIHeader->res0e = %x, "
--
1.8.0
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list