aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-10-15 18:51:02 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-10-15 18:51:02 +0000
commit65a728a53b78ae79360da13e8c14349ff78e5a86 (patch)
tree27b0aa7bdddc2b7022454b5e421d402053cf159f /sys/fs
parent0845b8fa4353ee1a8812a26ac6f7e392043c51e7 (diff)
Notes
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/pseudofs/pseudofs_vncache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vncache.c b/sys/fs/pseudofs/pseudofs_vncache.c
index 59f61af91084..76fdf3ee8cf8 100644
--- a/sys/fs/pseudofs/pseudofs_vncache.c
+++ b/sys/fs/pseudofs/pseudofs_vncache.c
@@ -136,8 +136,10 @@ pfs_vncache_alloc(struct mount *mp, struct vnode **vpp,
if (++pfs_vncache_entries > pfs_vncache_maxentries)
pfs_vncache_maxentries = pfs_vncache_entries;
error = getnewvnode("pseudofs", mp, pfs_vnodeop_p, vpp);
- if (error)
+ if (error) {
+ FREE(pvd, M_PFSVNCACHE);
return (error);
+ }
pvd->pvd_pn = pn;
pvd->pvd_pid = pid;
(*vpp)->v_data = pvd;