Skip to content
Snippets Groups Projects
Commit dbb018cd authored by Darren Jenkins's avatar Darren Jenkins Committed by Herbert Xu
Browse files

crypto: tcrypt - Fix memory leak in test_cipher


Coverity CID: 2306 & 2307 RESOURCE_LEAK

In the second for loop in test_cipher(), data is allocated space with
kzalloc() and is only ever freed in an error case.
Looking at this loop, data is written to this memory but nothing seems
to read from it. 
So here is a patch removing the allocation, I think this is the right
fix.

Only compile tested.

Signed-off-by: default avatarDarren Jenkins <darrenrjenkins@gmailcom>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 7b51ba38
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment