diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-05-06 14:35:19 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-05-06 14:35:19 +0000 |
commit | 0a7ee7080562b62742671295c2512fd94237bae8 (patch) | |
tree | 9f435cd3f3a35011ed4bab54ffb6f6ab6f0b777c | |
parent | 0f07be8955c4febfd2662e222f0371c8a92ae1d2 (diff) |
Thu May 6 10:25:27 1999 Thomas Bushnell, BSG <tb@mit.edu>
* utilities.c (pextend): Free MORE before returning.
* dir.c (linkup): Don't free tempname until after we're done using
it in the call to warning.
Reported by Katsuya Tanaka (tanaka@boarderz.com).
-rw-r--r-- | ufs-fsck/ChangeLog | 7 | ||||
-rw-r--r-- | ufs-fsck/dir.c | 4 | ||||
-rw-r--r-- | ufs-fsck/utilities.c | 3 |
3 files changed, 11 insertions, 3 deletions
diff --git a/ufs-fsck/ChangeLog b/ufs-fsck/ChangeLog index 93c2e4af..0fede606 100644 --- a/ufs-fsck/ChangeLog +++ b/ufs-fsck/ChangeLog @@ -1,3 +1,10 @@ +Thu May 6 10:25:27 1999 Thomas Bushnell, BSG <tb@mit.edu> + + * utilities.c (pextend): Free MORE before returning. + * dir.c (linkup): Don't free tempname until after we're done using + it in the call to warning. + Reported by Katsuya Tanaka (tanaka@boarderz.com). + 1999-03-25 Roland McGrath <roland@baalperazim.frob.com> * setup.c (setup): Don't complain if the device is a block device. diff --git a/ufs-fsck/dir.c b/ufs-fsck/dir.c index b058fe9e..04541c4f 100644 --- a/ufs-fsck/dir.c +++ b/ufs-fsck/dir.c @@ -1,5 +1,5 @@ /* Directory management subroutines - Copyright (C) 1994, 1996 Free Software Foundation, Inc. + Copyright (C) 1994, 1996, 1999 Free Software Foundation, Inc. Written by Michael I. Bushnell. This file is part of the GNU Hurd. @@ -519,8 +519,8 @@ linkup (ino_t ino, ino_t parent) } if (search_failed) { - free (tempname); warning (1, "FAILURE SEARCHING FOR `%s' IN `%s'", tempname, lfname); + free (tempname); return 0; } if (!makeentry (lfdir, ino, tempname)) diff --git a/ufs-fsck/utilities.c b/ufs-fsck/utilities.c index 4c515f61..2ccade06 100644 --- a/ufs-fsck/utilities.c +++ b/ufs-fsck/utilities.c @@ -1,5 +1,5 @@ /* Miscellaneous functions for fsck - Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1994, 1995, 1996, 1999 Free Software Foundation, Inc. Written by Michael I. Bushnell. This file is part of the GNU Hurd. @@ -322,6 +322,7 @@ pextend (char *fmt, ...) strcpy (concat + strlen (concat), more); prob->desc = concat; + free (more); } /* Like problem, but as if immediately followed by pfail. */ |