Exit with error if a new buffer can't be allocated
When building with gcc and -Wnull-dereference, -O3 and -flto we get a lot of warnings about potential null dereferences. Exiting instead of returning NULL solves all of it. If we cannot alloc memory, there is not much to do - exiting is the easiest option.
This commit is contained in:
committed by
Tatsuya Kinoshita
parent
3750197410
commit
07bccf3e36