mfreadwrite: Fix a memory leak (Coverity).

This commit is contained in:
Zhiyi Zhang 2024-03-11 20:51:09 +08:00 committed by Alexandre Julliard
parent 4860fbe7b5
commit e21244f7a3

View file

@ -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++)
{