RFR: 8354878: File Leak in CgroupSubsystemFactory::determine_type of cgroupSubsystem_linux.cpp:300
Casper Norrbin
cnorrbin at openjdk.org
Wed May 7 13:08:53 UTC 2025
Hi,
There's a file descriptor in `cgroupSubsystem_linux.cpp` that isn't closed if we successfully open it but can't read from it. In that case, the open descriptor should still be closed before returning.
-------------
Commit messages:
- still close file descriptor if we fail to read
Changes: https://git.openjdk.org/jdk/pull/25093/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25093&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8354878
Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/25093.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25093/head:pull/25093
PR: https://git.openjdk.org/jdk/pull/25093
More information about the hotspot-runtime-dev
mailing list