Commit 5b4010e8 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_nnedi: fix possible double free

parent a1e5c35a
......@@ -809,8 +809,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *src)
ret = get_frame(ctx, 1);
if (ret < 0) {
av_frame_free(&s->dst);
av_frame_free(&s->src);
av_frame_free(&s->second);
s->src = NULL;
return ret;
}
dst = s->dst;
......
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