aboutsummaryrefslogtreecommitdiffstats
path: root/src/mem_pool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem_pool.c')
-rw-r--r--src/mem_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem_pool.c b/src/mem_pool.c
index 43ffc86a0..32eb4d786 100644
--- a/src/mem_pool.c
+++ b/src/mem_pool.c
@@ -513,7 +513,7 @@ memory_pool_delete (memory_pool_t * pool)
cur_shared = cur_shared->next;
STAT_LOCK ();
mem_pool_stat->chunks_freed++;
- mem_pool_stat->bytes_allocated -= tmp->len;
+ mem_pool_stat->bytes_allocated -= tmp_shared->len;
STAT_UNLOCK ();
munmap ((void *)tmp_shared, tmp_shared->len + sizeof (struct _pool_chain_shared));
}