diff options
author | Krishna Kumar <krkumar2@in.ibm.com> | 2008-10-20 08:17:09 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-01-06 17:53:47 +0100 |
commit | 2bd9e7b62e6e1da3f881c40c73d93e9a212ce6de (patch) | |
tree | dc378a128825bbf80367abb9ea8f75261ed1d05c /fs/nfsd/nfs4recover.c | |
parent | nfsd: Minor cleanup of find_stateid (diff) | |
download | linux-2bd9e7b62e6e1da3f881c40c73d93e9a212ce6de.tar.xz linux-2bd9e7b62e6e1da3f881c40c73d93e9a212ce6de.zip |
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 0f9d6efaa62b..74f7b67567fd 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; |