diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-10-07 11:10:45 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-07 11:15:44 +0200 |
commit | 5b4010e88686ea40a56f016f3c27753af6b3c766 (patch) | |
tree | 651d0be5ece080ef25315eb9d293137b376ded19 /libavfilter/vf_nnedi.c | |
parent | a1e5c35a6e43ef8722017b070c124e72d628c0cd (diff) | |
download | ffmpeg-5b4010e88686ea40a56f016f3c27753af6b3c766.tar.gz |
avfilter/vf_nnedi: fix possible double free
Diffstat (limited to 'libavfilter/vf_nnedi.c')
-rw-r--r-- | libavfilter/vf_nnedi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_nnedi.c b/libavfilter/vf_nnedi.c index b14aa64c04..9bad99e98a 100644 --- a/libavfilter/vf_nnedi.c +++ b/libavfilter/vf_nnedi.c @@ -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; |