-** Safely call malloc
-*/
-void *
-mh_xmalloc(size_t size)
-{
- void *memory;
-
- if (size == 0) {
- adios(EX_SOFTWARE, NULL, "Tried to malloc 0 bytes");
- }
-
- memory = malloc(size);
- if (!memory) {
- adios(EX_OSERR, NULL, "Malloc failed");
- }
-
- return memory;
-}
-
-/*