crypto: tcrypt - Fix leak of struct aead_request in test_aead_speed()
authorChristian Engelmayer <cengelma@gmx.at>
Mon, 21 Apr 2014 18:47:05 +0000 (20:47 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Apr 2014 10:21:18 +0000 (18:21 +0800)
commit6af1f93e2a0192fb1efbe82a5fef53d71cbe218b
tree4a293e06c5bfc608fcaea36108ae2edf3feecb2e
parenta2ea6ed6a631e24d315b5f2bd468e6f4c7ff2e48
crypto: tcrypt - Fix leak of struct aead_request in test_aead_speed()

Fix leakage of memory for struct aead_request that is allocated via
aead_request_alloc() but not released via aead_request_free().
Reported by Coverity - CID 1163869.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c