- 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:
parent
b49627d7a7
commit
3b06a01534
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user