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

Fixed memory leak for clib-search #229

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

WestleyR
Copy link
Contributor

@WestleyR WestleyR commented Jan 8, 2021

Frees all pointers from strdup.

Before:

$ clib-search foo
[...]
Process 71040: 1070 nodes malloced for 55 KB
Process 71040: 562 leaks for 19648 total leaked bytes.

    562 (19.2K) << TOTAL >>

Yup, almost a whopping 20Kbs of leaked memory.

After:

$ clib-search foo
[...]
Process 71043: 508 nodes malloced for 36 KB
Process 71043: 0 leaks for 0 total leaked bytes.

And now, there is no leaks!

Frees all pointers from strdup.
@jwerle jwerle merged commit 49e507e into clibs:master Jan 8, 2021
@WestleyR WestleyR deleted the search_memory_leak_fix branch January 8, 2021 02:11
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.

3 participants