X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Falloc.c;h=678901a98e834f330d38c97fefb7f999982afc86;hb=8c48090e240d68564c79eb29ac9004cc911bb5d0;hp=21d9635778daf3974132f1fc6f13df82523f78a4;hpb=738aa2a6c2e769f96d49ccde48bd0e10dd41eb90;p=libucw.git diff --git a/lib/alloc.c b/lib/alloc.c index 21d96357..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 * @@ -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); +}