This PR introduces a function which wraps malloc and aborts if an error is detected. This way of handling malloc's errors is a bit crude compared to returning an error code, but it avoids undefined behaviour and does not introduce unnecessary complications in the library.
This PR introduces a function which wraps
malloc
and aborts if an error is detected. This way of handlingmalloc
's errors is a bit crude compared to returning an error code, but it avoids undefined behaviour and does not introduce unnecessary complications in the library.