diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2020-09-21 00:20:59 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-09-25 17:48:54 +1000 |
commit | bb9a0217e9cbaf598bd2c8a5493390c6dba0ffcc (patch) | |
tree | 24da52e2d1f2234acbbc9e39479878febea72b0b /crypto/ecdh.c | |
parent | 696e2e97ed2c7fe56fef6148ae2b35da352fa0a3 (diff) | |
download | linux-crypto-bb9a0217e9cbaf598bd2c8a5493390c6dba0ffcc.tar.gz linux-crypto-bb9a0217e9cbaf598bd2c8a5493390c6dba0ffcc.zip |
crypto: testmgr - Fix potential memory leak in test_akcipher_one()
When the 'key' allocation fails, the 'req' will not be released,
which will cause memory leakage on this path. This patch adds a
'free_req' tag used to solve this problem, and two new err values
are added to reflect the real reason of the error.
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ecdh.c')
0 files changed, 0 insertions, 0 deletions