Update version for release
[tftp-hpa.git] / lib / xmalloc.c
blobf234a4608cec5c85f409c1a4ad00d1c6ecb878d4
1 /*
2 * xmalloc.c
4 * Simple error-checking version of malloc()
6 */
8 #include "config.h"
10 void *xmalloc(size_t size)
12 void *p = malloc(size);
14 if ( !p ) {
15 fprintf(stderr, "Out of memory!\n");
16 exit(128);
19 return p;