1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-13 02:35:50 +02:00

avfilter/can_merge_formats: fix memleak

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-07-25 16:54:04 +02:00
parent 6bde1e9d14
commit de0a1f63df

View File

@ -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 {