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

compiler -Wuse-after-free warning #2758

Open
joachimmetz opened this issue Sep 9, 2022 · 1 comment
Open

compiler -Wuse-after-free warning #2758

joachimmetz opened this issue Sep 9, 2022 · 1 comment

Comments

@joachimmetz
Copy link
Contributor

logical_fs.cpp:728:37: warning: pointer used after 'void free(void*)' [-Wuse-after-free]
  728 |                 tsk_error_set_errstr("load_path_from_inum - failed to find path corresponding to inum %" PRIuINUM, search_helper->target_inum);
      |                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'void free_search_helper(LOGICALFS_SEARCH_HELPER*)',
    inlined from 'TSK_TCHAR* load_path_from_inum(LOGICALFS_INFO*, TSK_INUM_T)' at logical_fs.cpp:725:21:
logical_fs.cpp:166:13: note: call to 'void free(void*)' here
  166 |         free(helper);
      |         ~~~~^~~~~~~~
@joachimmetz
Copy link
Contributor Author

Still persists in 7f94769

joachimmetz added a commit to joachimmetz/sleuthkit that referenced this issue Feb 11, 2023
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