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

Eliminates execution path with using uninitialised pointer #21

Merged
merged 2 commits into from
Nov 26, 2019
Merged

Eliminates execution path with using uninitialised pointer #21

merged 2 commits into from
Nov 26, 2019

Conversation

valeriyvan
Copy link
Contributor

No description provided.

@craigsapp craigsapp merged commit 27b2298 into craigsapp:master Nov 26, 2019
craigsapp added a commit that referenced this pull request Nov 26, 2019
@craigsapp
Copy link
Owner

It seems my commentary on this commit got lost :-(

The code was correct, but difficult for an automatic parser to figure out. I adjusted the pull request in commit 3b56ab4.

I changed the allocation of a token to instead be a test case for a null pointer; otherwise, there will be a memory leak created for cases where the token is allocated but not stored or freed.

Also note that humlib code is tab indented :-)

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