Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle leak in bit-rot-stub #4352

Open
sminux opened this issue May 14, 2024 · 0 comments
Open

Handle leak in bit-rot-stub #4352

sminux opened this issue May 14, 2024 · 0 comments

Comments

@sminux
Copy link

sminux commented May 14, 2024

Description of problem:
The handle 'fd_ctx->bad_object->dir' is created at syscall.c:149 by calling function 'sys_opendir' at bit-rot-stub.c:2690

fd_ctx->bad_object.dir = sys_opendir(priv->stub_basepath);

and lost at bit-rot-stub.c:2698.

Do we need to add sys_closedir(fd_ctx->bad_object.dir);

This is a svace static analyzer warning

The exact command to reproduce the issue:

The full output of the command that failed:

Expected results:

Mandatory info:

Additional info:

- Debian / 10.5:

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

No branches or pull requests

1 participant