8355353: File Leak in os::read_image_release_file of os.cpp:1552

Reviewed-by: zgu, jsjolen
This commit is contained in:
Coleen Phillimore 2025-05-05 11:57:01 +00:00
parent 026479767c
commit a8cd01f6e2

View File

@ -1551,6 +1551,7 @@ void os::read_image_release_file() {
fseek(file, 0, SEEK_END);
long sz = ftell(file);
if (sz == -1) {
fclose(file);
return;
}
fseek(file, 0, SEEK_SET);