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

Improved handling if realloc fails. #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

verpeteren
Copy link
Contributor

Realloc might return NULL, wich in turn might cause memory leaks.

Realloc might return NULL, wich in turn might cause memory leaks.
@paraboul
Copy link
Member

paraboul commented May 5, 2015

In any case, if realloc returns NULL, we are doomed.
We should exit(1);

@paraboul paraboul closed this May 5, 2015
@verpeteren verpeteren reopened this May 5, 2015
@verpeteren
Copy link
Contributor Author

Update pullrequest with exit(1);

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