summaryrefslogtreecommitdiff
path: root/accel-pptpd/triton
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pptpd/triton')
-rw-r--r--accel-pptpd/triton/mempool.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/accel-pptpd/triton/mempool.c b/accel-pptpd/triton/mempool.c
index 5ffc5e3..da11825 100644
--- a/accel-pptpd/triton/mempool.c
+++ b/accel-pptpd/triton/mempool.c
@@ -253,7 +253,10 @@ void sigclean(int num)
while (!list_empty(&p->items)) {
it = list_entry(p->items.next, typeof(*it), entry);
list_del(&it->entry);
- _free(it);
+ if (p->mmap)
+ munmap(it, size);
+ else
+ _free(it);
triton_stat.mempool_allocated -= size;
triton_stat.mempool_available -= size;
}