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

Multiple memory leaks #2867

Open
john-8998 opened this issue Sep 6, 2023 · 0 comments
Open

Multiple memory leaks #2867

john-8998 opened this issue Sep 6, 2023 · 0 comments

Comments

@john-8998
Copy link

ntfs_dent.cpp -> ntfs_proc_idxentry: In the sanity check, the code returns without freeing fs_name.
ntfs_dent.cpp -> ntfs_find_file: fs_file is not freed in case tsk_fs_name_alloc fails.
fatxxfs_dent.c -> fat_xxfs_dent_parse_buf: There are 2 returns from the function without fs_name being freed.
fs_dir.c -> tsk_fs_dir_get: 2 returns where fs_file->name and fs_file is not freed.

I just did a quick look at references to tsk_fs_name_alloc and found all this potential memory leaks.
Do you use any code analysis tool?

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