diff options
author | Wu Jianhua <jianhua.wu@intel.com> | 2021-11-17 11:04:15 +0800 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2021-11-17 04:24:33 +0100 |
commit | e95969c07e9eb83bacf7ffebbdbe2687879bf5b1 (patch) | |
tree | c2e04a850d5029c8be5d9af8fbe8a7d6ddc32d55 /libavfilter/vf_gblur_vulkan.c | |
parent | d401b1cceceacc93c90f6d239dd58e22632c013d (diff) | |
download | ffmpeg-e95969c07e9eb83bacf7ffebbdbe2687879bf5b1.tar.gz |
avfilter/gblur_vulkan: fix memory leak
Whether failed or not, the block of codes labeled with fail should
be always run to ensure the av_free(kernel_def) is executed.
Signed-off-by: Wu Jianhua <jianhua.wu@intel.com>
Diffstat (limited to 'libavfilter/vf_gblur_vulkan.c')
-rw-r--r-- | libavfilter/vf_gblur_vulkan.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavfilter/vf_gblur_vulkan.c b/libavfilter/vf_gblur_vulkan.c index b9e2c4fbc7..d4f391b25d 100644 --- a/libavfilter/vf_gblur_vulkan.c +++ b/libavfilter/vf_gblur_vulkan.c @@ -296,8 +296,6 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in) s->initialized = 1; - return 0; - fail: av_free(kernel_def); return err; |