mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-19 06:45:17 +00:00
8355353: File Leak in os::read_image_release_file of os.cpp:1552
Reviewed-by: zgu, jsjolen
This commit is contained in:
parent
026479767c
commit
a8cd01f6e2
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user