Skip to content

Commit

Permalink
Hurd: Fix spurious mach_port_deallocate in getcwd.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Thibault authored and Roland McGrath committed Dec 22, 2009
1 parent d34bd80 commit e70ffcb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2009-12-20 Samuel Thibault <samuel.thibault@ens-lyon.org>

* sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
__mach_port_deallocate on rootdevid.

2009-12-17 Martin Schwidefsky <schwidefsky@de.ibm.com>

* sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
Expand Down
4 changes: 2 additions & 2 deletions sysdeps/mach/hurd/getcwd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* Copyright (C) 1991,92,93,94,95,96,97,98,2002,04 Free Software Foundation, Inc.
/* Copyright (C) 1991,92,93,94,95,96,97,98,2002,2004,2009
Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -60,7 +61,6 @@ _hurd_canonicalize_directory_name_internal (file_t thisdir,
__mach_port_deallocate (__mach_task_self (), thisid);
__mach_port_deallocate (__mach_task_self (), thisdevid);
__mach_port_deallocate (__mach_task_self (), rootid);
__mach_port_deallocate (__mach_task_self (), rootdevid);

if (dirbuf != NULL)
__vm_deallocate (__mach_task_self (),
Expand Down

0 comments on commit e70ffcb

Please sign in to comment.