From: Richard Levitte Date: Wed, 31 Jan 2018 21:08:12 +0000 (+0100) Subject: ocsp.c doesn't free the whole output chain, maybe causing a memory leak X-Git-Tag: OpenSSL_1_1_1-pre1~75 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=4e525a0b4db2b11bee15a485b6ed6622ca8948f1 ocsp.c doesn't free the whole output chain, maybe causing a memory leak Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/5224) --- diff --git a/apps/ocsp.c b/apps/ocsp.c index 122aee6770..bd16a5b869 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -730,7 +730,7 @@ redo_accept: free_index(rdb); BIO_free_all(cbio); BIO_free_all(acbio); - BIO_free(out); + BIO_free_all(out); OCSP_REQUEST_free(req); OCSP_RESPONSE_free(resp); OCSP_BASICRESP_free(bs);