Skip to content

Commit

Permalink
nfsd: Fix leaked memory in nfs4_make_rec_clidname
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Krishna Kumar authored and J. Bruce Fields committed Jan 6, 2009
1 parent 9346eff commit 2bd9e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/nfs4recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2bd9e7b

Please sign in to comment.