1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avfilter/vf_nnedi: fix possible double free

This commit is contained in:
Paul B Mahol 2019-10-07 11:10:45 +02:00
parent a1e5c35a6e
commit 5b4010e886

View File

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