diff options
author | Darren Jenkins <darrenrjenkins@gmailcom> | 2008-07-08 15:51:44 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-07-08 15:51:44 +0800 |
commit | dbb018cd8a0fd073eaabf9de5a93f62d98bd7723 (patch) | |
tree | 761c76f1fc6c81a51cd68adfe77108bed3c66dfd /lib/locking-selftest-wsem.h | |
parent | 7b51ba38d9baca207152d1c97ec793cfb673a6cd (diff) |
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: Darren Jenkins <darrenrjenkins@gmailcom>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/locking-selftest-wsem.h')
0 files changed, 0 insertions, 0 deletions