From b393ef99cfca111589793d0cf469184cc149918b Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 3 Jul 1999 23:51:36 +0000 Subject: 1999-07-03 Thomas Bushnell, BSG * pq.c (free_packets): Use munmap instead of vm_deallocate. --- libpipe/ChangeLog | 4 ++++ libpipe/pq.c | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'libpipe') diff --git a/libpipe/ChangeLog b/libpipe/ChangeLog index c95d471f..41347672 100644 --- a/libpipe/ChangeLog +++ b/libpipe/ChangeLog @@ -1,3 +1,7 @@ +1999-07-03 Thomas Bushnell, BSG + + * pq.c (free_packets): Use munmap instead of vm_deallocate. + 1998-10-20 Roland McGrath * pq.c (free_packets): Add braces to silence gcc warning. diff --git a/libpipe/pq.c b/libpipe/pq.c index 9f8ab7ed..d5aaf719 100644 --- a/libpipe/pq.c +++ b/libpipe/pq.c @@ -1,6 +1,6 @@ /* Packet queues - Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc. Written by Miles Bader @@ -54,8 +54,7 @@ free_packets (struct packet *head) if (head->buf_len > 0) { if (head->buf_vm_alloced) - vm_deallocate (mach_task_self (), - (vm_address_t)head->buf, head->buf_len); + munmap (head->buf, head->buf_len); else free (head->buf); } -- cgit v1.2.3