Commit e21244f7 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

mfreadwrite: Fix a memory leak (Coverity).

parent 4860fbe7
......@@ -1925,7 +1925,10 @@ static HRESULT source_reader_create_transform(struct source_reader *reader, BOOL
if (SUCCEEDED(hr = MFTEnum(category, 0, &in_type, allow_processor ? NULL : &out_type, NULL, &classes, &count)))
{
if (!count)
{
free(entry);
return MF_E_TOPO_CODEC_NOT_FOUND;
}
for (i = 0; i < count; i++)
{
......
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