Skip to content

Commit 384a8b8

Browse files
dafedafeTobiHartmann
authored andcommitted
8303069: Memory leak in CompilerOracle::parse_from_line
Reviewed-by: thartmann, jcking
1 parent 6dd6c15 commit 384a8b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hotspot/share/compiler/compilerOracle.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ static void register_command(TypedMethodOptionMatcher* matcher,
309309

310310
if (option == CompileCommand::Blackhole && !UnlockExperimentalVMOptions) {
311311
warning("Blackhole compile option is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions");
312+
// Delete matcher as we don't keep it
313+
delete matcher;
312314
return;
313315
}
314316

0 commit comments

Comments
 (0)