mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-06 11:46:35 +00:00
8255845: Memory leak in imageFile.cpp
Reviewed-by: jlaskey, sundar
This commit is contained in:
parent
fa58671f9f
commit
66a2e70985
@ -178,8 +178,8 @@ const char* ImageModuleData::package_to_module(const char* package_name) {
|
||||
// retrieve package location
|
||||
ImageLocation location;
|
||||
bool found = _image_file->find_location(path, location);
|
||||
delete[] path;
|
||||
if (!found) {
|
||||
delete[] path;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user