mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
avfilter/vf_tiltandshift: Free dst on error
Fixes: CID1559901 Resource leak Sponsored-by: Sovereign Tech Fund Reviewed-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
bfdcdc930b
commit
6b843024a6
@ -237,8 +237,10 @@ static int output_frame(AVFilterLink *outlink)
|
||||
|
||||
// set correct timestamps and props as long as there is proper input
|
||||
ret = av_frame_copy_props(dst, s->input);
|
||||
if (ret < 0)
|
||||
if (ret < 0) {
|
||||
av_frame_free(&dst);
|
||||
return ret;
|
||||
}
|
||||
|
||||
// discard frame at the top of the list since it has been fully processed
|
||||
list_remove_head(s);
|
||||
|
Loading…
Reference in New Issue
Block a user