From 8f6218a7c8d291a66a6d4c7916abccc3ee9872ca Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sat, 10 Nov 2007 16:06:11 +0000 Subject: [PATCH] ole32: Fix a memory leak in DataCacheEntry_Save. --- dlls/ole32/datacache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c index 249882e8597..57cbbf56569 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; -- 2.11.4.GIT