diff options
author | Hanno Böck <hanno@hboeck.de> | 2015-05-25 16:18:07 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-05-25 19:13:26 -0400 |
commit | cf89a80e25b79ae0e6004e4a2509bf656fb59168 (patch) | |
tree | 3fa8dbe7f3323e45bf785e025ddbe50455cd2ce0 /apps | |
parent | cc630cdbcc77859a8d4ada54d3c986afe9f9dece (diff) |
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>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/req.c | 1 |
1 files changed, 1 insertions, 0 deletions
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"); } |