diff options
author | tedu <> | 2014-05-30 02:52:11 +0000 |
---|---|---|
committer | tedu <> | 2014-05-30 02:52:11 +0000 |
commit | 9598b4272312fc9b55154e675c1adb3a21b491b3 (patch) | |
tree | a802460259115af2ecf6be49736b1b6a09173232 /src/lib/libcrypto/ocsp | |
parent | 50df74c1961eaed1e88ea9c7bb4cfcab77d75043 (diff) | |
download | openbsd-9598b4272312fc9b55154e675c1adb3a21b491b3.tar.gz openbsd-9598b4272312fc9b55154e675c1adb3a21b491b3.tar.bz2 openbsd-9598b4272312fc9b55154e675c1adb3a21b491b3.zip |
no need for null check before free. from Brendan MacDonell
Diffstat (limited to 'src/lib/libcrypto/ocsp')
-rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_ht.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp_ht.c b/src/lib/libcrypto/ocsp/ocsp_ht.c index a42b4f03f4..894d51d532 100644 --- a/src/lib/libcrypto/ocsp/ocsp_ht.c +++ b/src/lib/libcrypto/ocsp/ocsp_ht.c | |||
@@ -110,8 +110,7 @@ OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx) | |||
110 | { | 110 | { |
111 | if (rctx->mem) | 111 | if (rctx->mem) |
112 | BIO_free(rctx->mem); | 112 | BIO_free(rctx->mem); |
113 | if (rctx->iobuf) | 113 | free(rctx->iobuf); |
114 | free(rctx->iobuf); | ||
115 | free(rctx); | 114 | free(rctx); |
116 | } | 115 | } |
117 | 116 | ||