Subject: | [PATCH] avoid cyclic reference on ->compress |
Date: | Mon, 18 May 2020 21:12:56 +0000 |
To: | bug-Mail-IMAPClient [...] rt.cpan.org |
From: | Eric Wong <e [...] yhbt.net> |
Hello, I noticed enabling compression causes a memory leak.
This leak gets bad with long-lived processes and flaky
(mobile) connections requiring frequent reconnects.
Attached is a small patch which fixes the issue.
If you want, I can also provide a bigger patch which avoids
anonymous subs in ->compress entirely. I find anonymous subs
error-prone and a frequent source of mistakes like these which
lead to memory leaks.
Thanks for Mail::IMAPClient!
Message body is not shown because sender requested not to inline it.