Commit 07b14bf2 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

windowscodecs: Fix memory deallocation in LoadUnknownMetadata (Coverity).

parent 9a8d3cc5
......@@ -557,7 +557,7 @@ static HRESULT LoadUnknownMetadata(IStream *input, const GUID *preferred_vendor,
}
result = HeapAlloc(GetProcessHeap(), 0, sizeof(MetadataItem));
if (FAILED(hr))
if (!result)
{
HeapFree(GetProcessHeap(), 0, data);
return E_OUTOFMEMORY;
......
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