diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-10 09:22:52 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-07-20 13:51:21 +0800 |
commit | 3fd8093b41e745448ffeb0a0d3becc2cd1f9d7ad (patch) | |
tree | 5ba2cdea55b27cb0fd47277de8c8f1cd7f9d465b /crypto/drbg.c | |
parent | d6be72ee2c77469d4fb391ccccc2ebc1b167a242 (diff) | |
download | linux-next-3fd8093b41e745448ffeb0a0d3becc2cd1f9d7ad.tar.gz |
crypto: dh - fix memory leak
In case memory resources for *base* were allocated, release them
before return.
Addresses-Coverity-ID: 1471702 ("Resource leak")
Fixes: e3fe0ae12962 ("crypto: dh - add public key verification test")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Stephan Müller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/drbg.c')
0 files changed, 0 insertions, 0 deletions