X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Falloc.c;h=678901a98e834f330d38c97fefb7f999982afc86;hb=ed4e86de76d1c3bfb685207fe00078950f67355a;hp=40f3edf3171379ab42ba68461e8ab13781454649;hpb=49ed04e2e93a6a5b01058638224621d5c07db01c;p=libucw.git diff --git a/lib/alloc.c b/lib/alloc.c index 40f3edf3..678901a9 100644 --- a/lib/alloc.c +++ b/lib/alloc.c @@ -1,5 +1,5 @@ /* - * Sherlock Library -- Memory Allocation + * UCW Library -- Memory Allocation * * (c) 2000 Martin Mares * @@ -12,7 +12,7 @@ #include #include -#ifndef DMALLOC +#ifndef DEBUG_DMALLOC void * xmalloc(uns size) @@ -32,3 +32,14 @@ xmalloc_zero(uns size) bzero(x, size); return x; } + +void +xfree(void *ptr) +{ + /* + * Maybe it is a little waste of resources to make this a function instead + * of a macro, but xmalloc() is not used for anything critical anyway, + * so let's prefer simplicity. + */ + free(ptr); +}