Module: wine Branch: master Commit: 8f6218a7c8d291a66a6d4c7916abccc3ee9872ca URL: http://source.winehq.org/git/wine.git/?a=commit;h=8f6218a7c8d291a66a6d4c7916...
Author: Rob Shearman rob@codeweavers.com Date: Sat Nov 10 16:06:11 2007 +0000
ole32: Fix a memory leak in DataCacheEntry_Save.
---
dlls/ole32/datacache.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c index 249882e..57cbbf5 100644 --- a/dlls/ole32/datacache.c +++ b/dlls/ole32/datacache.c @@ -750,6 +750,7 @@ static HRESULT DataCacheEntry_Save(DataCacheEntry *This, IStorage *storage,
if (data) hr = IStream_Write(pres_stream, data, header.dwSize, NULL); + HeapFree(GetProcessHeap(), 0, data);
IStream_Release(pres_stream); return hr;