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 leak in g_env.argv and TB_Message.filename. #13

Closed
wants to merge 1 commit into from

Conversation

danielt3
Copy link

Both g_env.argv and TB_Message.filename were allocated using strdup but never deallocated using free.

@ocornut
Copy link
Owner

ocornut commented Nov 10, 2015

It's pretty much unnecessary at the end of main, in practice I assume nothing in MEKA is freed up (unless you ran a leak detector and only those 2 were left-over?)

For the coding style you can remove unnecessary braces, add space after if, no space after open-parenthesis, and use ptr != NULL rather than NULL != ptr.

@ocornut
Copy link
Owner

ocornut commented Mar 24, 2016

Closing this as we have bigger fishes to fry. If we are going to fix end-of-the-main leak at least we could run thoroughly on them and look at individual subsystems in their entirety.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants