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

Fix getFileList potentially referring to freed memory #17

Merged
merged 3 commits into from
Nov 18, 2022
Merged

Fix getFileList potentially referring to freed memory #17

merged 3 commits into from
Nov 18, 2022

Conversation

Inverted
Copy link
Owner

Path names are freed when closing a dir, so you need to copy the name for future use. Also frees some more memory when stopping the program to clean up Valgrind output.

@R3tr0BoiDX
Copy link
Collaborator

Oii, thanks! Also, the changes you made with the pthread make much more sense that way, heh.

@R3tr0BoiDX R3tr0BoiDX merged commit 9b70645 into Inverted:main Nov 18, 2022
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