History

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.

Wu Jianhua committed 4 years ago

Commit e95969c1 parent d401b1c1 file · +0 −2Browse files

Unified · Split

libavfilter/vf_gblur_vulkan.c+0−2
@@ -296,8 +296,6 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in) · 295 unmodified lines
296 296
297 s->initialized = 1;297 s->initialized = 1;
298 298
299 return 0;
300
301fail:299fail:
302 av_free(kernel_def);300 av_free(kernel_def);
303 return err;301 return err;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t