-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
Coverity static analysis found possible occurence of resource leak.
In constructor when fos.getFD() will throw exception FileOutputStream fos won't be closed.
FileAuditEndpoint.java
FileAuditEndpoint(Builder builder) throws IOException { this.dateFormatSupplier = builder.dateFormatSupplier; this.syncOnAccept = builder.syncOnAccept; FileOutputStream fos = new FileOutputStream(builder.location.toFile(), true); this.fileDescriptor = fos.getFD(); this.outputStream = new BufferedOutputStream(fos); }
- clones
-
JBEAP-8851 Coverity static analysis, Resource leak on an exceptional path, FileAuditEndpoint (elytron)
- Closed