windowscodecs: Fix memory deallocation in LoadUnknownMetadata (Coverity).
This commit is contained in:
parent
9a8d3cc5bd
commit
07b14bf281
|
@ -557,7 +557,7 @@ static HRESULT LoadUnknownMetadata(IStream *input, const GUID *preferred_vendor,
|
||||||
}
|
}
|
||||||
|
|
||||||
result = HeapAlloc(GetProcessHeap(), 0, sizeof(MetadataItem));
|
result = HeapAlloc(GetProcessHeap(), 0, sizeof(MetadataItem));
|
||||||
if (FAILED(hr))
|
if (!result)
|
||||||
{
|
{
|
||||||
HeapFree(GetProcessHeap(), 0, data);
|
HeapFree(GetProcessHeap(), 0, data);
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
|
Loading…
Reference in New Issue