Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-377

InputStream is not closed properly

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.7.22
    • 1.7.19
    • jcl-over-slf4j
    • None

    Description

      InputStream in SimpleLog class at line 156 is not closed properly. For example if simpleLogProps.load(in); throw an exception then the InputStream will remain open.

      InputStream in = getResourceAsStream("simplelog.properties");
              if (null != in) {
                  try {
                      simpleLogProps.load(in);
                      in.close();
                  } catch (java.io.IOException e) {
                      // ignored
                  }

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            kal0ian Kaloyan Spiridonov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: