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/ocsp | |
parent | 8e9c3c8ab205533cebb588280a86d9ff2ec73fa2 (diff) |
no need for null check before free. from Brendan MacDonell
Diffstat (limited to 'lib/libcrypto/ocsp')
-rw-r--r-- | lib/libcrypto/ocsp/ocsp_ht.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/ocsp/ocsp_ht.c b/lib/libcrypto/ocsp/ocsp_ht.c index a42b4f03f44..894d51d532f 100644 --- a/lib/libcrypto/ocsp/ocsp_ht.c +++ b/lib/libcrypto/ocsp/ocsp_ht.c @@ -110,8 +110,7 @@ OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx) { if (rctx->mem) BIO_free(rctx->mem); - if (rctx->iobuf) - free(rctx->iobuf); + free(rctx->iobuf); free(rctx); } |