ole32: Fix a memory leak in DataCacheEntry_Save.
This commit is contained in:
parent
5885be4e11
commit
8f6218a7c8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue