diff --git a/libavformat/asfdec_o.c b/libavformat/asfdec_o.c index 17f958fed5..f7889a40e1 100644 --- a/libavformat/asfdec_o.c +++ b/libavformat/asfdec_o.c @@ -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); } }