UF.OUT

UF (Use Freed) issues are reported when there is an attempt to use resources after they were released. The UF.OUT warning indicates an attempt to use an output stream after it was closed.

Example 1

Copy
     public boolean writeMeta(OutputStream stream) {
         try {
             stream.write("mystate".getBytes());
         } catch (IOException e) {
             return false;
         } finally {
             try {
                 stream.close();
             } catch (IOException e) {
                 // do nothing
             }
         }
         return true;
     }
 
     public void saveState(final String path, final byte[] data) throws IOException {
         final FileOutputStream stream = new FileOutputStream(path);
         if (writeMeta(stream)) {
             stream.write(data);
         }
     }

UF.OUT is reported for the snippet on line 33: the output stream 'stream' is used after it was closed on line 22.