commit 60a5454e05ad7a1e079858d8e3f1ff0a83fd4490
parent c8084bd1502fe240906500af6fa58b68f6326fb0
Author: Roberto E. Vargas Caballero <roberto.vargas@midokura.com>
Date: Sat, 19 Nov 2022 08:55:42 +0100
os9: Unmap segment before returning it to the pool
If the segment is not unmaped then we have a leak of buffers
and pages.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/os9/proc.c b/src/os9/proc.c
@@ -363,6 +363,8 @@ freefds(Fdset *fds)
static void
freemap(Map *mp)
{
+ unmapseg(mp);
+
lock(&mappool.m);
mp->next = mappool.list;
mappool.list = mp;