提交 4f1f5cba 编写于 作者: R rraghavan

8152730: File Leak in CompileBroker::init_compiler_thread_log of compileBroker.cpp:1665.

Summary: Added missing code to close file pointer.
Reviewed-by: kvn
上级 4f49057a
......@@ -1851,6 +1851,10 @@ void CompileBroker::init_compiler_thread_log() {
tty->print_cr("Opening compilation log %s", file_name);
}
CompileLog* log = new(ResourceObj::C_HEAP, mtCompiler) CompileLog(file_name, fp, thread_id);
if (log == NULL) {
fclose(fp);
return;
}
thread->init_log(log);
if (xtty != NULL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册