From 98cb8d0c27e0ab61c01c25468676f2fb57f3e113 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 26 Mar 1996 20:48:14 +0000 Subject: (_pager_clean): Deallocate anticipations structures here. --- libpager/clean.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'libpager/clean.c') diff --git a/libpager/clean.c b/libpager/clean.c index 85fa6c96..3b970550 100644 --- a/libpager/clean.c +++ b/libpager/clean.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by Michael I. Bushnell. This file is part of the GNU Hurd. @@ -29,6 +29,7 @@ _pager_clean (void *arg) #ifdef KERNEL_INIT_RACE struct pending_init *i, *tmp; #endif + struct anticipation *ant, *nxt; if (p->pager_state != NOTINIT) { @@ -43,8 +44,15 @@ _pager_clean (void *arg) free (i); } #endif + for (ant = p->anticipations; ant; ant = nxt) + { + vm_deallocate (mach_task_self (), ant->address, ant->len); + nxt = ant->next; + free (ant); + } + mutex_unlock (&p->interlock); } - + pager_clear_user_data (p->upi); } -- cgit v1.2.3