From 2a42f4295174122f6cc1df68d62836c1250a50fd Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 19 Nov 2009 11:54:32 +0000 Subject: [PATCH] oleaut32: Fix memory leak of name in ITypeLib2_Constructor_MSFT. --- dlls/oleaut32/typelib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index ee715b69c83..8f552dc0766 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -2992,6 +2992,7 @@ static ITypeLib2* ITypeLib2_Constructor_MSFT(LPVOID pLib, DWORD dwTLBLength) name = TLB_Alloc(size+1); MSFT_Read(name, size, &cx, DO_NOT_SEEK); (*ppImpLib)->name = TLB_MultiByteToBSTR(name); + TLB_Free(name); MSFT_ReadGuid(&(*ppImpLib)->guid, oGuid, &cx); offset = (offset + sizeof(INT) + sizeof(DWORD) + sizeof(LCID) + sizeof(UINT16) + size + 3) & ~3;