Author :
John Norrbin
Date :
2019-01-04 19:24:59
Hash :1e848d2e Message :Handle malloc returning null
Locks are required for multi-threading. If memory can't be allocated, exit the program with memory error. If we let the program continue, it will deadlock in the next part of the code anyway so better end it before.