windowscodecs: Fix memory deallocation in LoadUnknownMetadata (Coverity).

This commit is contained in:
Frédéric Delanoy 2012-01-15 00:35:47 +01:00 committed by Alexandre Julliard
parent 9a8d3cc5bd
commit 07b14bf281
1 changed files with 1 additions and 1 deletions

View File

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