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 | c347b286995a98247e1e9f7a1743a69f83cbbe1a (patch) | |
tree | cf40c05094459fedeacca918e3f227dd3fbaa83b /libavfilter | |
parent | 19f567208cffe64b6406277e36f695e1bf63112d (diff) | |
download | ffmpeg-streaming-c347b286995a98247e1e9f7a1743a69f83cbbe1a.zip ffmpeg-streaming-c347b286995a98247e1e9f7a1743a69f83cbbe1a.tar.gz |
avfilter/vf_unsharp: Free out AVFrame on error
Fixes memleak
Fixes part of CID1197065
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_unsharp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_unsharp.c b/libavfilter/vf_unsharp.c index 7c600c9..438ff6d 100644 --- a/libavfilter/vf_unsharp.c +++ b/libavfilter/vf_unsharp.c @@ -258,8 +258,10 @@ static int filter_frame(AVFilterLink *link, AVFrame *in) end: av_frame_free(&in); - if (ret < 0) + if (ret < 0) { + av_frame_free(&out); return ret; + } return ff_filter_frame(outlink, out); } |