mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
mfreadwrite: Fix a memory leak (Coverity).
This commit is contained in:
parent
4860fbe7b5
commit
e21244f7a3
1 changed files with 3 additions and 0 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue