From cf89a80e25b79ae0e6004e4a2509bf656fb59168 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hanno=20B=C3=B6ck?= Date: Mon, 25 May 2015 16:18:07 -0400 Subject: [PATCH] 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 --- apps/req.c | 1 + 1 file changed, 1 insertion(+) 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"); } -- 2.40.0