]>
git.ipfire.org Git - thirdparty/bird.git/blob - lib/xmalloc.c
2bec260c721ca41dadd08f39c2685093547e527c
2 * BIRD Library -- malloc() With Checking
4 * (c) 1998--1999 Martin Mares <mj@ucw.cz>
6 * Can be freely distributed and used under the terms of the GNU GPL.
11 #include "nest/bird.h"
12 #include "lib/resource.h"
14 #ifndef HAVE_LIBDMALLOC
17 xmalloc(unsigned size
)
19 void *p
= malloc(size
);
22 die("Unable to allocate %d bytes of memory", size
);