ole32: Fix a memory leak in DataCacheEntry_Save.

This commit is contained in:
Rob Shearman 2007-11-10 16:06:11 +00:00 committed by Alexandre Julliard
parent 5885be4e11
commit 8f6218a7c8
1 changed files with 1 additions and 0 deletions

View File

@ -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;