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 memory leak in allphone_search.c #138

Merged
merged 1 commit into from
Aug 9, 2018
Merged

Conversation

chussong
Copy link
Contributor

@chussong chussong commented Aug 9, 2018

Running allphone_backtrace multiple times clears previously allocated segments, but no one ever clears the most recently allocated ones, creating a memory leak which Valgrind attributes to the most recent time allphone_backtrace was run. allphone_search_free seems like the obvious place to do clean it up.

Running allphone_backtrace multiple times clears previously allocated segments, but no one ever clears the most recently allocated ones, creating a memory leak which Valgrind attributes to the most recent time allphone_backtrace was run. allphone_search_free seems like the obvious place to do clean it up.
@nshmyrev nshmyrev merged commit 3cb1e2c into cmusphinx:master Aug 9, 2018
@nshmyrev
Copy link
Contributor

nshmyrev commented Aug 9, 2018

Thank you!

@chussong chussong deleted the patch-1 branch May 24, 2019 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants