diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-03 19:37:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-03 21:52:22 +0100 |
commit | 19f567208cffe64b6406277e36f695e1bf63112d (patch) | |
tree | 829bfdfc4b0f5cd86c8c47866db9ff45e8d8df17 | |
parent | 21a07ac191adb9239d7d2f24ac947a29a2d9bf8c (diff) | |
download | ffmpeg-19f567208cffe64b6406277e36f695e1bf63112d.tar.gz |
avfilter/vf_perspective: Free out AVFrame on error
Fixes memleak
Fixes part of CID1197065
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavfilter/vf_perspective.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_perspective.c b/libavfilter/vf_perspective.c index d590cfa48d..92495097cc 100644 --- a/libavfilter/vf_perspective.c +++ b/libavfilter/vf_perspective.c @@ -463,6 +463,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) if (s->eval_mode == EVAL_MODE_FRAME) { if ((ret = calc_persp_luts(ctx, inlink)) < 0) { + av_frame_free(&out); return ret; } } |