From 3b06a0153401fe5ab3436188f495ee8a8d1393bb Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Mon, 25 Apr 2005 05:11:19 +0000 Subject: [PATCH] - We want if (mrep != NULL) not if (m_freem != NULL). m_freem will never be NULL and we will always leak mrep in the error case. Submitted by: Greg Taleck --- sys/nfs4client/nfs4_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/nfs4client/nfs4_vnops.c b/sys/nfs4client/nfs4_vnops.c index ca79c6e337a1..1abbeb96a7fd 100644 --- a/sys/nfs4client/nfs4_vnops.c +++ b/sys/nfs4client/nfs4_vnops.c @@ -1174,7 +1174,7 @@ nfs4_readlinkrpc(struct vnode *vp, struct uio *uiop, struct ucred *cred) nfsmout: error = nfs_v4postop(&cp, error); - if (m_freem != NULL) + if (mrep != NULL) m_freem(mrep); return (error); }