summaryrefslogtreecommitdiffstats
path: root/sys/nfs4client
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-04-25 05:11:19 +0000
committerjeff <jeff@FreeBSD.org>2005-04-25 05:11:19 +0000
commit08d28c599c676949937d175ab7f3f1f5d6648b75 (patch)
tree715808effa851cbcbac63a6190f38f898f6cf160 /sys/nfs4client
parentffa9d252ae53603f1d9c999bd1b03214b6842747 (diff)
downloadFreeBSD-src-08d28c599c676949937d175ab7f3f1f5d6648b75.zip
FreeBSD-src-08d28c599c676949937d175ab7f3f1f5d6648b75.tar.gz
- 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>
Diffstat (limited to 'sys/nfs4client')
-rw-r--r--sys/nfs4client/nfs4_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfs4client/nfs4_vnops.c b/sys/nfs4client/nfs4_vnops.c
index ca79c6e..1abbeb9 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);
}
OpenPOWER on IntegriCloud