title: Fortify Unreleased Resource: Streams try with resource in loop
body: <p>Fortify find &quot;Unreleased Resource: Streams&quot; error for my script that I've already use try with resource :</p>
  <pre><code>public static void zipFiles(List&lt;FileZipObject&gt; fileList, File outFile) throws IOException {
      try (FileOutputStream fileOutputStream = new FileOutputStream(outFile);
           ZipOutputStream zipOut = new ZipOutputStream(fileOutputStream)) {
          for (FileZipObject fileZipObject : fileList) {
              try (FileInputStream fis = new FileInputStream(fileZipObject.getFilePath())) { //  &lt;------ This line
                  ZipEntry zipEntry = new ZipEntry(genEntryName(fileZipObject.getFileName()));
                  zipOut.putNextEntry(zipEntry);
  
                  byte[] bytes = new byte[1024];
                  int length;
                  while ((length = fis.read(bytes)) &gt;= 0) {
                      zipOut.write(bytes, 0, length);
                  }
              }
          }
      }
  }
  </code></pre>
  <p>Please help me to fix this problem</p>