diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-13 19:08:07 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-13 19:08:07 +0000 |
commit | a7e74053f365de72e8d1cd756cdf7601ba3d7428 (patch) | |
tree | 0d7df29afc1ffa666602d9492da703370c2b2aad /sys/compat/netbsd | |
parent | 380c15dc359d713114d5dce6b4a285852f414061 (diff) |
More FREF/FRELE on relevant places. Now, only sys_mmap and a bunch of ioctl functions in sys/compat are left.
Diffstat (limited to 'sys/compat/netbsd')
-rw-r--r-- | sys/compat/netbsd/netbsd_stat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/netbsd/netbsd_stat.c b/sys/compat/netbsd/netbsd_stat.c index dbd8c41ab1c..7921a2710f9 100644 --- a/sys/compat/netbsd/netbsd_stat.c +++ b/sys/compat/netbsd/netbsd_stat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_stat.c,v 1.12 2001/10/26 12:03:27 art Exp $ */ +/* $OpenBSD: netbsd_stat.c,v 1.13 2002/02/13 19:08:06 art Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -195,7 +195,9 @@ netbsd_sys___fstat13(p, v, retval) if ((fp = fd_getfile(fdp, fd)) == NULL) return (EBADF); + FREF(fp); error = (*fp->f_ops->fo_stat)(fp, &sb, p); + FRELE(fp); if (error) return (error); openbsd_to_netbsd_stat(&sb, &nsb); |