diff options
author | Mark Thompson <sw@jkqxz.net> | 2020-01-06 23:56:10 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-01-07 00:04:50 +0000 |
commit | f907eea8632b62f61aa9a2b28464f7d657dac45b (patch) | |
tree | d508df19efb80d3a8409627817c817ef98dd0449 /libavfilter | |
parent | f0e7ac59866899d015ecedea6f792dd69c7be64a (diff) | |
download | ffmpeg-f907eea8632b62f61aa9a2b28464f7d657dac45b.tar.gz |
vf_tonemap_vaapi: Fix memory leak in error case
Fixes CID 1457236.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_tonemap_vaapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_tonemap_vaapi.c b/libavfilter/vf_tonemap_vaapi.c index cc81334d77..2f41b90424 100644 --- a/libavfilter/vf_tonemap_vaapi.c +++ b/libavfilter/vf_tonemap_vaapi.c @@ -278,7 +278,7 @@ static int tonemap_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame err = av_frame_copy_props(output_frame, input_frame); if (err < 0) - return err; + goto fail; if (ctx->color_primaries != AVCOL_PRI_UNSPECIFIED) output_frame->color_primaries = ctx->color_primaries; |