aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-01-10 23:25:56 +0000
committerMark Thompson <sw@jkqxz.net>2018-01-10 23:25:56 +0000
commit9b4611a1c1f2ac5d1bfd75f7e6e41aa0bc15ca39 (patch)
treee4decd4f68c70e72ad18f2a59f1dab58f17b21b9
parent6cc44c058396c51a52e868c4293692b43047e8f4 (diff)
downloadffmpeg-9b4611a1c1f2ac5d1bfd75f7e6e41aa0bc15ca39.tar.gz
vf_overlay_opencl: Don't leak output frame on error
Fixes CID #1423277.
-rw-r--r--libavfilter/vf_overlay_opencl.c1
1 files changed, 1 insertions, 0 deletions
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;
}