From: Hanno Böck Date: Mon, 25 May 2015 20:18:07 +0000 (-0400) Subject: RT3861: Mem/bio leak in req command X-Git-Tag: OpenSSL_1_1_0-pre1~1083 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf89a80e25b79ae0e6004e4a2509bf656fb59168;p=openssl RT3861: Mem/bio leak in req command The "out" variable is used for both key and csr. Close it after writing the first one so it can be re-used when writing the other. Signed-off-by: Rich Salz Reviewed-by: Tim Hudson --- diff --git a/apps/req.c b/apps/req.c index 8acdad350d..5514ee351d 100644 --- a/apps/req.c +++ b/apps/req.c @@ -612,6 +612,7 @@ int req_main(int argc, char **argv) } goto end; } + BIO_free(out); BIO_printf(bio_err, "-----\n"); }