Plug an infrequent (I think) memory leak.

Spotted by:	FlexeLint
This commit is contained in:
Poul-Henning Kamp 2002-10-15 18:51:02 +00:00
parent 0845b8fa43
commit 65a728a53b

View File

@ -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;