Skip to content

Commit a8cd01f

Browse files
committed
8355353: File Leak in os::read_image_release_file of os.cpp:1552
Reviewed-by: zgu, jsjolen
1 parent 0264797 commit a8cd01f

File tree

1 file changed

+1
-0
lines changed
  • src/hotspot/share/runtime

1 file changed

+1
-0
lines changed

src/hotspot/share/runtime/os.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,6 +1551,7 @@ void os::read_image_release_file() {
15511551
fseek(file, 0, SEEK_END);
15521552
long sz = ftell(file);
15531553
if (sz == -1) {
1554+
fclose(file);
15541555
return;
15551556
}
15561557
fseek(file, 0, SEEK_SET);

0 commit comments

Comments
 (0)