diff --git a/lib/memory.c b/lib/memory.c index 6de729999..2d12248ea 100644 --- a/lib/memory.c +++ b/lib/memory.c @@ -128,7 +128,7 @@ int memory_free(void *ptr) if (!ma) return -1; - debug(LOG_MEM | 5, "Releasing %#zx bytes of %s memory", ma->length, ma->type->name); + debug(LOG_MEM | 5, "Releasing %#zx bytes of %s memory: %p", ma->length, ma->type->name, ma->address); ret = ma->type->free(ma->type, ma); if (ret) diff --git a/lib/pool.c b/lib/pool.c index 1a7ce726f..b025982ae 100644 --- a/lib/pool.c +++ b/lib/pool.c @@ -64,7 +64,7 @@ int pool_destroy(struct pool *p) queue_destroy(&p->queue); - void *buffer = (char*) p + p->buffer_off; + void *buffer = (char *) p + p->buffer_off; ret = memory_free(buffer); if (ret == 0) p->state = STATE_DESTROYED;