]> mj.ucw.cz Git - libucw.git/blobdiff - lib/alloc.c
Added thread_id to ucwlib_context.
[libucw.git] / lib / alloc.c
index 599913161b2e496d3f946922c7919ccbc4d83666..678901a98e834f330d38c97fefb7f999982afc86 100644 (file)
@@ -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);
+}