diff options
author | Thomas Bushnell <thomas@gnu.org> | 1998-05-12 17:14:57 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1998-05-12 17:14:57 +0000 |
commit | b7fc87792bf10e101d15324776d82dbde53f7e75 (patch) | |
tree | 9190687956495a47d2a393a30e0dfd99c99b8ae4 /libdiskfs/file-get-trans.c | |
parent | 56b1e0c3869ff369f59ae08ef30a9cf9322707e1 (diff) | |
download | hurd-b7fc87792bf10e101d15324776d82dbde53f7e75.tar.gz hurd-b7fc87792bf10e101d15324776d82dbde53f7e75.tar.bz2 hurd-b7fc87792bf10e101d15324776d82dbde53f7e75.zip |
Tue May 12 12:08:35 1998 Thomas Bushnell, n/BSG <tb@mit.edu>
* file-get-trans.c (diskfs_S_file_get_translator) [S_ISCHR ||
S_ISBLK]: Free BUF after using it. Reported by Katusya Tanaka
(wyvern@pb3.so-net.ne.jp).
Diffstat (limited to 'libdiskfs/file-get-trans.c')
-rw-r--r-- | libdiskfs/file-get-trans.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/file-get-trans.c b/libdiskfs/file-get-trans.c index a9a94e54..81bc88a7 100644 --- a/libdiskfs/file-get-trans.c +++ b/libdiskfs/file-get-trans.c @@ -1,5 +1,5 @@ /* libdiskfs implementation of fs.defs: file_get_translator - Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation + Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -84,6 +84,7 @@ diskfs_S_file_get_translator (struct protid *cred, if (buflen > *translen) vm_allocate (mach_task_self (), (vm_address_t *) trans, buflen, 1); bcopy (buf, *trans, buflen); + free (buf); *translen = buflen; error = 0; } |