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 /ufs-fsck/dir.c | |
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).
Diffstat (limited to 'ufs-fsck/dir.c')
-rw-r--r-- | ufs-fsck/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |