summaryrefslogtreecommitdiff
path: root/libpager/object-terminate.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-26 20:50:53 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-26 20:50:53 +0000
commit94f1f96d40edc17ec9e7beeaab9533b33ec349df (patch)
tree939afc6594460876383ed49d97ebfa4d00c9fd4d /libpager/object-terminate.c
parentde0efcb43775dc129a489a93824d736871185dce (diff)
(_pager_free_structure): more.
Diffstat (limited to 'libpager/object-terminate.c')
-rw-r--r--libpager/object-terminate.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libpager/object-terminate.c b/libpager/object-terminate.c
index bab7ddb4..17522307 100644
--- a/libpager/object-terminate.c
+++ b/libpager/object-terminate.c
@@ -108,12 +108,13 @@ _pager_free_structure (struct pager *p)
mach_port_deallocate (mach_task_self (), p->memobjcntl);
mach_port_deallocate (mach_task_self (), p->memobjname);
- for (ant = p->anticipations; ant; ant = nxt)
- {
- vm_deallocate (mach_task_self (), ant->address, ant->len);
- nxt = ant->next;
- free (ant);
- }
+ for (ant = p->anticipations; ant; ant = nxt)
+ {
+ vm_deallocate (mach_task_self (), ant->address, ant->len);
+ nxt = ant->next;
+ free (ant);
+ }
+ p->anticipations = 0;
/* Free the pagemap */
if (p->pagemapsize)