-
Bug
-
Resolution: Done
-
Major
-
7.1.0.DR12
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); }
- is cloned by
-
ELY-964 Coverity static analysis, Resource leak on an exceptional path, FileAuditEndpoint (elytron)
- Resolved