diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-13 15:00:41 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-13 15:00:41 +0000 |
commit | 72ed942a4e8dd2ddf0515863177b474617731fe9 (patch) | |
tree | c14149c76927fdfa4ea948e68a7853b90c0bf331 /sys/kern/vfs_vnops.c | |
parent | af9b551b3f8f35d502a5b7e9555e37e9bab090b7 (diff) |
pass the size to free in some of the obvious cases
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r-- | sys/kern/vfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 0ea3035563a..a550743e45a 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_vnops.c,v 1.77 2014/07/12 18:43:32 tedu Exp $ */ +/* $OpenBSD: vfs_vnops.c,v 1.78 2014/07/13 15:00:40 tedu Exp $ */ /* $NetBSD: vfs_vnops.c,v 1.20 1996/02/04 02:18:41 christos Exp $ */ /* @@ -173,7 +173,7 @@ vn_open(struct nameidata *ndp, int fmode, int cmode) VOP_UNLOCK(vp, 0, p); /* keep a reference */ vp = ndp->ni_vp; /* for the increment below */ - free(cip, M_TEMP, 0); + free(cip, M_TEMP, sizeof(*cip)); } if (fmode & FWRITE) |