Project

General

Profile

Bug #32262

Possible file descriptor leaks

Added by Ewoud Kohl van Wijngaarden about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

In a few places File.open is used without closing it.

Associated revisions

Revision 47277c64 (diff)
Added by Ewoud Kohl van Wijngaarden about 1 year ago

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.

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

Also available in: Atom PDF