diff options
Diffstat (limited to 'accel-pptpd/triton')
-rw-r--r-- | accel-pptpd/triton/mempool.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/accel-pptpd/triton/mempool.c b/accel-pptpd/triton/mempool.c index 5ffc5e36..da11825c 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; } |