Commit 8f6218a7 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Fix a memory leak in DataCacheEntry_Save.

parent 5885be4e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment