[FFmpeg-cvslog] vf_overlay_opencl: Don't leak output frame on error

Mark Thompson git at videolan.org
Thu Jan 11 01:36:58 EET 2018


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Wed Jan 10 23:25:56 2018 +0000| [9b4611a1c1f2ac5d1bfd75f7e6e41aa0bc15ca39] | committer: Mark Thompson

vf_overlay_opencl: Don't leak output frame on error

Fixes CID #1423277.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9b4611a1c1f2ac5d1bfd75f7e6e41aa0bc15ca39
---

 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 46ce42df84..ee8381dfee 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;
 }
 



More information about the ffmpeg-cvslog mailing list