Commit de0a1f63 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/can_merge_formats: fix memleak

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6bde1e9d
......@@ -390,6 +390,7 @@ static int can_merge_formats(AVFilterFormats *a_arg,
}
if (ret) {
av_freep(&ret->formats);
av_freep(&ret->refs);
av_freep(&ret);
return 1;
} else {
......
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