Commit c347b286 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_unsharp: Free out AVFrame on error

Fixes memleak
Fixes part of CID1197065
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 19f56720
...@@ -258,8 +258,10 @@ static int filter_frame(AVFilterLink *link, AVFrame *in) ...@@ -258,8 +258,10 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
end: end:
av_frame_free(&in); av_frame_free(&in);
if (ret < 0) if (ret < 0) {
av_frame_free(&out);
return ret; return ret;
}
return ff_filter_frame(outlink, out); return ff_filter_frame(outlink, out);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment