diff -uBb pooldebug.c.org pooldebug.c
--- pooldebug.c.org 2011-03-01 11:37:07.588075465 +0100
+++ pooldebug.c 2011-03-01 11:47:16.366520121 +0100
@@ -508,6 +508,7 @@
pool->owner = GetCurrentThread();
#endif /* THREAD_VERSION */
if ((pool_allocator = calloc(1,sizeof(Allocator))) == NULL) {
+ Free(pool);
return NULL;
}
pool_allocator->owner = pool;