8296270: Memory leak in ClassLoader::setup_bootstrap_search_path_impl

Co-authored-by: Justin King <jcking@google.com>
Reviewed-by: dholmes, jiangli
This commit is contained in:
Man Cao 2022-11-07 03:53:32 +00:00
parent c2f7638389
commit 556377a058

View file

@ -649,10 +649,7 @@ void ClassLoader::setup_bootstrap_search_path_impl(JavaThread* current, const ch
_jrt_entry = new ClassPathImageEntry(JImage_file, canonical_path);
assert(_jrt_entry != NULL && _jrt_entry->is_modules_image(), "No java runtime image present");
assert(_jrt_entry->jimage() != NULL, "No java runtime image");
} else {
// It's an exploded build.
ClassPathEntry* new_entry = create_class_path_entry(current, path, &st, false, false);
}
} // else it's an exploded build.
} else {
// If path does not exist, exit
vm_exit_during_initialization("Unable to establish the boot loader search path", path);