In some circumstances memory allocation may fail and cause a segfault early on, make this case more obvious