- 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 <gtaleck@isilon.com>
This commit is contained in:
Jeff Roberson 2005-04-25 05:11:19 +00:00
parent b49627d7a7
commit 3b06a01534

View File

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