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 leaks #54

Merged
merged 1 commit into from
Nov 13, 2022
Merged

fixed memory leaks #54

merged 1 commit into from
Nov 13, 2022

Conversation

RandomPigYT
Copy link
Contributor

Freed line_infos before returning TINYOBJ_ERROR_EMPTY in tinyobj_parse_and_index_mtl_file if get_line_infos does not return 0.
Freed line_infos in tinyobj_parse_and_index_mtl_file before returning TINYOBJ_SUCCESS.

@syoyo syoyo merged commit ad46278 into syoyo:master Nov 13, 2022
@syoyo
Copy link
Owner

syoyo commented Nov 13, 2022

@RandomPigYT Good catch! Thanks! Merged!

@syoyo
Copy link
Owner

syoyo commented Nov 13, 2022

@RandomPigYT Will this PR fixes this issue? #49

@RandomPigYT
Copy link
Contributor Author

Yeah, i was loading an obj file for an opengl project, and decided to run the binary file through valgrind.

@syoyo
Copy link
Owner

syoyo commented Nov 14, 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.

None yet

2 participants