Commit 9752d2e6 authored by Alexandra Hájková's avatar Alexandra Hájková Committed by Luca Barbato

asfdec: prevent possible memory leak in the asf_read_metadata_obj

Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 910247f1
......@@ -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);
}
}
......
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