mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8255845: Memory leak in imageFile.cpp
Reviewed-by: jlaskey, sundar
This commit is contained in:
parent
fa58671f9f
commit
66a2e70985
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue