Skip to content

lib/fuse.c: fix memory leak in print_module_help()#6

Open
agabhin wants to merge 1 commit into
masterfrom
fix-print-module-help-leak
Open

lib/fuse.c: fix memory leak in print_module_help()#6
agabhin wants to merge 1 commit into
masterfrom
fix-print-module-help-leak

Conversation

@agabhin

@agabhin agabhin commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Summary

Fix memory leak in print_module_help() — if the second fuse_opt_add_arg() fails, the function returns without calling fuse_opt_free_args(), leaking the argv allocated by the first successful call.

Found by Facebook Infer (MEMORY_LEAK_C).

If the second fuse_opt_add_arg() fails, the function returns without
calling fuse_opt_free_args(), leaking the argv allocated by the first
successful call.

Found by Facebook Infer (MEMORY_LEAK_C).

Signed-off-by: Abhinav Agarwal <abhinavagarwal1996@gmail.com>
@agabhin agabhin force-pushed the fix-print-module-help-leak branch from 6e940b3 to 935aa13 Compare April 7, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants