From 9b4611a1c1f2ac5d1bfd75f7e6e41aa0bc15ca39 Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Wed, 10 Jan 2018 23:25:56 +0000 Subject: [PATCH] vf_overlay_opencl: Don't leak output frame on error Fixes CID #1423277. --- libavfilter/vf_overlay_opencl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_overlay_opencl.c b/libavfilter/vf_overlay_opencl.c index 46ce42df847..ee8381dfee2 100644 --- a/libavfilter/vf_overlay_opencl.c +++ b/libavfilter/vf_overlay_opencl.c @@ -250,6 +250,7 @@ fail_kernel_arg: kernel_arg, cle); err = AVERROR(EIO); fail: + av_frame_free(&output); return err; } -- 2.39.2