Commit cf89a80e authored by Hanno Böck's avatar Hanno Böck Committed by Rich Salz
Browse files

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: default avatarRich Salz <rsalz@openssl.org>
Reviewed-by: default avatarTim Hudson <tjh@openssl.org>
parent cc630cdb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -612,6 +612,7 @@ int req_main(int argc, char **argv)
            }
            goto end;
        }
        BIO_free(out);
        BIO_printf(bio_err, "-----\n");
    }