=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: oleaut32: Fix remaining memory leak (coverity).

Alexandre Julliard julliard at winehq.org
Tue Nov 13 13:46:06 CST 2012


Module: wine
Branch: master
Commit: 43ffbe5611161d1227baa710c541c22b94794204
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=43ffbe5611161d1227baa710c541c22b94794204

Author: André Hentschel <nerv at dawncrow.de>
Date:   Sat Nov 10 15:56:58 2012 +0100

oleaut32: Fix remaining memory leak (coverity).

---

 dlls/oleaut32/typelib.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index cb179f9..83ea7e1 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, "




More information about the wine-cvs mailing list