diff options
author | Krishna Kumar <krkumar2@in.ibm.com> | 2008-10-20 11:47:09 +0530 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-01-06 11:53:47 -0500 |
commit | 2bd9e7b62e6e1da3f881c40c73d93e9a212ce6de (patch) | |
tree | dc378a128825bbf80367abb9ea8f75261ed1d05c /fs/nfsd/nfs4recover.c | |
parent | 9346eff0dea1e5855fba25c9fe639d92a4db3135 (diff) | |
download | op-kernel-dev-2bd9e7b62e6e1da3f881c40c73d93e9a212ce6de.zip op-kernel-dev-2bd9e7b62e6e1da3f881c40c73d93e9a212ce6de.tar.gz |
nfsd: Fix leaked memory in nfs4_make_rec_clidname
cksum.data is not freed up in one error case. Compile tested.
Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4recover.c')
-rw-r--r-- | fs/nfsd/nfs4recover.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c index 0f9d6ef..74f7b67 100644 --- a/fs/nfsd/nfs4recover.c +++ b/fs/nfsd/nfs4recover.c @@ -116,9 +116,9 @@ nfs4_make_rec_clidname(char *dname, struct xdr_netobj *clname) md5_to_hex(dname, cksum.data); - kfree(cksum.data); status = nfs_ok; out: + kfree(cksum.data); crypto_free_hash(desc.tfm); out_no_tfm: return status; |