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>
This commit is contained in:
@@ -296,8 +296,6 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
|
|||||||
|
|
||||||
s->initialized = 1;
|
s->initialized = 1;
|
||||||
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
av_free(kernel_def);
|
av_free(kernel_def);
|
||||||
return err;
|
return err;
|
||||||
|
Reference in New Issue
Block a user