mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
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:
parent
cc630cdbcc
commit
cf89a80e25
@ -612,6 +612,7 @@ int req_main(int argc, char **argv)
|
||||
}
|
||||
goto end;
|
||||
}
|
||||
BIO_free(out);
|
||||
BIO_printf(bio_err, "-----\n");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user