vf_overlay_opencl: Don't leak output frame on error
authorMark Thompson <sw@jkqxz.net>
Wed, 10 Jan 2018 23:25:56 +0000 (23:25 +0000)
committerMark Thompson <sw@jkqxz.net>
Wed, 10 Jan 2018 23:25:56 +0000 (23:25 +0000)
Fixes CID #1423277.

libavfilter/vf_overlay_opencl.c

index 46ce42d..ee8381d 100644 (file)
@@ -250,6 +250,7 @@ fail_kernel_arg:
            kernel_arg, cle);
     err = AVERROR(EIO);
 fail:
+    av_frame_free(&output);
     return err;
 }