avfilter/can_merge_formats: fix memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6bde1e9d14
commit
de0a1f63df
@ -390,6 +390,7 @@ static int can_merge_formats(AVFilterFormats *a_arg,
|
|||||||
}
|
}
|
||||||
if (ret) {
|
if (ret) {
|
||||||
av_freep(&ret->formats);
|
av_freep(&ret->formats);
|
||||||
|
av_freep(&ret->refs);
|
||||||
av_freep(&ret);
|
av_freep(&ret);
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user