mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_nnedi: fix possible double free
This commit is contained in:
parent
a1e5c35a6e
commit
5b4010e886
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user