mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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) {
|
||||
av_freep(&ret->formats);
|
||||
av_freep(&ret->refs);
|
||||
av_freep(&ret);
|
||||
return 1;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user