Bug #32262
Possible file descriptor leaks
Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Description
In a few places File.open is used without closing it.
Associated revisions
History
#1
Updated by The Foreman Bot about 1 year ago
- Assignee set to Ewoud Kohl van Wijngaarden
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/9269 added
#2
Updated by Jonathon Turel about 1 year ago
- Triaged changed from No to Yes
- Target version set to Katello 4.1.0
#3
Updated by The Foreman Bot about 1 year ago
- Fixed in Releases Katello 4.2.0 added
#4
Updated by Ewoud Kohl van Wijngaarden about 1 year ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|47277c64ee2193577501b6a80cec488286882ffe.
Fixes #32262 - Avoid leaking file descriptors
Using File.open without closing it can leak file descriptors. File.read
ensures the file is closed and as a nice bonus actually shorter.
This also shortens a lot of cases where the file was closed to make it
shorter.