X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Falloc.c;h=678901a98e834f330d38c97fefb7f999982afc86;hb=86919305a08aa88b3a60c3216752291ba7f0b496;hp=599913161b2e496d3f946922c7919ccbc4d83666;hpb=cad27e97e6370f96903d42aaf345c099af0a03bd;p=libucw.git diff --git a/lib/alloc.c b/lib/alloc.c index 59991316..678901a9 100644 --- a/lib/alloc.c +++ b/lib/alloc.c @@ -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); +}