[FIX] IMAP APPEND file leak

This exception:

  java.util.NoSuchElementException: framer

Was unmanaged (reactor subscriber in the stacktrace)

Followed immediatly by:

  org.apache.james.lifecycle.api.Disposable$LeakAwareFinalizer
  "message":"Leak detected!
  Resource org.apache.james.imapserver.netty.ImapRequestFrameDecoder$FileHolderInner@3d635737 was not released before its referent was garbage-collected.
  Resource management needs to be reviewed: ensure to always call dispose() for disposable objects you work with.
  Consider enabling advanced leak detection to further identify the problem.

In such case catching and propagating the exception as
well as releasing the file seems like a good idea.
1 file changed