8303069: Memory leak in CompilerOracle::parse_from_line

Reviewed-by: thartmann, jcking
This commit is contained in:
Damon Fenacci 2023-03-17 13:24:55 +00:00 committed by Tobias Hartmann
parent 6dd6c15ed4
commit 384a8b85a7

View File

@ -309,6 +309,8 @@ static void register_command(TypedMethodOptionMatcher* matcher,
if (option == CompileCommand::Blackhole && !UnlockExperimentalVMOptions) {
warning("Blackhole compile option is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions");
// Delete matcher as we don't keep it
delete matcher;
return;
}