mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-23 07:42:51 +00:00
avfilter/fsync: Fix memory leak
Fixes a leak if s->last_frame is still set at the end of filtering. Found-by: James Almer
This commit is contained in:
parent
b95ccfcada
commit
c03c675d89
@ -207,6 +207,9 @@ static int activate(AVFilterContext *ctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
end:
|
end:
|
||||||
|
if (s->last_frame)
|
||||||
|
av_frame_free(&s->last_frame);
|
||||||
|
|
||||||
ret = ff_inlink_consume_frame(inlink, &s->last_frame);
|
ret = ff_inlink_consume_frame(inlink, &s->last_frame);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user