Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavfilter/vf_sab.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_sab.c b/libavfilter/vf_sab.c
index 82e9ccd810..1d970fa95f 100644
--- a/libavfilter/vf_sab.c
+++ b/libavfilter/vf_sab.c
@@ -181,8 +181,10 @@ static int open_filter_param(FilterParam *f, int width, int height, unsigned int
f->dist_width = vec->length;
f->dist_linesize = FFALIGN(vec->length, 8);
f->dist_coeff = av_malloc(f->dist_width * f->dist_linesize * sizeof(*f->dist_coeff));
- if (!f->dist_coeff)
+ if (!f->dist_coeff) {
+ sws_freeVec(vec);
return AVERROR(ENOMEM);
+ }
for (y = 0; y < vec->length; y++) {
for (x = 0; x < vec->length; x++) {