diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-05-30 02:52:12 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-05-30 02:52:12 +0000 |
commit | 890019d42bea9ea72b2a114957766c9c1b3cb7e3 (patch) | |
tree | db57e71a5688e5229112337dcc33ca76da88d600 /lib/libcrypto/rsa | |
parent | 8e9c3c8ab205533cebb588280a86d9ff2ec73fa2 (diff) |
no need for null check before free. from Brendan MacDonell
Diffstat (limited to 'lib/libcrypto/rsa')
-rw-r--r-- | lib/libcrypto/rsa/rsa_pmeth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/rsa/rsa_pmeth.c b/lib/libcrypto/rsa/rsa_pmeth.c index 5580b7783ad..e75596afa38 100644 --- a/lib/libcrypto/rsa/rsa_pmeth.c +++ b/lib/libcrypto/rsa/rsa_pmeth.c @@ -148,8 +148,7 @@ static void pkey_rsa_cleanup(EVP_PKEY_CTX *ctx) { if (rctx->pub_exp) BN_free(rctx->pub_exp); - if (rctx->tbuf) - free(rctx->tbuf); + free(rctx->tbuf); free(rctx); } } |