asfdec: prevent possible memory leak in the asf_read_metadata_obj

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Alexandra Hájková 2015-07-02 12:26:19 +02:00 committed by Luca Barbato
parent 910247f172
commit 9752d2e6cc
1 changed files with 2 additions and 1 deletions

View File

@ -572,7 +572,8 @@ static int asf_read_metadata_obj(AVFormatContext *s, const GUIDParseTable *g)
if ((ret = process_metadata(s, name, name_len, val_len, type,
&asf->asf_sd[st_num].asf_met)) < 0)
break;
}
} else
av_freep(&name);
}
}