Module: wine Branch: master Commit: 2a42f4295174122f6cc1df68d62836c1250a50fd URL: http://source.winehq.org/git/wine.git/?a=commit;h=2a42f4295174122f6cc1df68d6... Author: Rob Shearman <robertshearman(a)gmail.com> Date: Thu Nov 19 11:54:32 2009 +0000 oleaut32: Fix memory leak of name in ITypeLib2_Constructor_MSFT. --- 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 ee715b6..8f552dc 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;