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 <rsalz@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
Hanno Böck 2015-05-25 16:18:07 -04:00 committed by Rich Salz
parent cc630cdbcc
commit cf89a80e25

View File

@ -612,6 +612,7 @@ int req_main(int argc, char **argv)
}
goto end;
}
BIO_free(out);
BIO_printf(bio_err, "-----\n");
}