summaryrefslogtreecommitdiff
path: root/sys/compat/ultrix/ultrix_pathname.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-02-13 19:08:07 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-02-13 19:08:07 +0000
commita7e74053f365de72e8d1cd756cdf7601ba3d7428 (patch)
tree0d7df29afc1ffa666602d9492da703370c2b2aad /sys/compat/ultrix/ultrix_pathname.c
parent380c15dc359d713114d5dce6b4a285852f414061 (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/ultrix/ultrix_pathname.c')
-rw-r--r--sys/compat/ultrix/ultrix_pathname.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/ultrix/ultrix_pathname.c b/sys/compat/ultrix/ultrix_pathname.c
index 1073053c24c..ce2a88ea869 100644
--- a/sys/compat/ultrix/ultrix_pathname.c
+++ b/sys/compat/ultrix/ultrix_pathname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ultrix_pathname.c,v 1.6 2002/02/12 18:41:21 art Exp $ */
+/* $OpenBSD: ultrix_pathname.c,v 1.7 2002/02/13 19:08:06 art Exp $ */
/* $NetBSD: ultrix_pathname.c,v 1.2 1996/04/07 17:23:07 jonathan Exp $ */
/*
@@ -189,9 +189,11 @@ ultrix_sys_open(p, v, retval)
if ((fd = fd_getfile(fdp, *retval)) == NULL)
return (EBADF);
+ FREF(fp);
/* ignore any error, just give it a try */
if (fp->f_type == DTYPE_VNODE)
(fp->f_ops->fo_ioctl)(fp, TIOCSCTTY, (caddr_t)0, p);
+ FRELE(fp);
}
return ret;
}