james-project icon indicating copy to clipboard operation
james-project copied to clipboard

Fix resource leak for MemoryMailRepository

Open vttranlina opened this issue 10 months ago • 0 comments

  • Fix error: Leak detected! Resource org.apache.james.server.core.MimeMessageInputStreamSource$Resource@xxxx was not released before its referent was garbage-collected.

Note:

  • I see the commit https://github.com/linagora/james-project/pull/2359/commits/d6d68d6615cc79cd5d088880920d75c74ec95fff changed the code from save directly mail to save cloneMail

I reverted it and the MailRepositoryContract still passed

vttranlina avatar Apr 23 '24 09:04 vttranlina