summaryrefslogtreecommitdiff
path: root/accel-pptpd/triton/mempool.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-11-26 16:06:47 +0300
committerKozlov Dmitry <dima@server>2010-11-26 16:06:47 +0300
commite5eddec6f9baf27aab61931bb657bc9764a2f6b4 (patch)
treea5066501833eaaf01004521a64ddbe84d47714a0 /accel-pptpd/triton/mempool.c
parent46bf66f9f5c6d078e2c51407662e8774c16cf1ef (diff)
downloadaccel-ppp-e5eddec6f9baf27aab61931bb657bc9764a2f6b4.tar.gz
accel-ppp-e5eddec6f9baf27aab61931bb657bc9764a2f6b4.zip
cli: show sessions: implemented sorting by username and regexp matching username
Diffstat (limited to 'accel-pptpd/triton/mempool.c')
-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 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;
}