提交 cf89a80e 编写于 作者: H Hanno Böck 提交者: Rich Salz

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: NRich Salz <rsalz@openssl.org>
Reviewed-by: NTim Hudson <tjh@openssl.org>
上级 cc630cdb
......@@ -612,6 +612,7 @@ int req_main(int argc, char **argv)
}
goto end;
}
BIO_free(out);
BIO_printf(bio_err, "-----\n");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册