Summary: | Memory leak in EWS resource | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Louis Moureaux <m_louis30> |
Component: | EWS Resource | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | carl, e.duisters1, krissn, lbeltrame |
Priority: | NOR | ||
Version: | 6.0.2 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Louis Moureaux
2024-05-10 17:25:25 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/kdepim-runtime/-/merge_requests/168 For sure related to https://bugs.kde.org/show_bug.cgi?id=485799 (either this one or the other should be marked as duplicate) Git commit aacd0807f13d0694b2bde515964b5f081973da5f by Luca Beltrame, on behalf of Louis Moureaux. Committed on 26/06/2024 at 06:06. Pushed by lbeltrame into branch 'master'. Fix a memory leak in TransferJob TransferJob wasn't releasing its QNetworkReply upon deletion, which resulted in it and associated resources being leaked. With the many requests spotted in bug 485799 this leads to heavy resource usage. | Heaptrack Before | Heaptrack After | | ------ | ------ | | ![image](/uploads/3d0957e59804bd9e1a01b62f4717e023/image.png) | ![image](/uploads/45ba2527c0a4a1f34da889e01ca763b9/image.png) | M +6 -5 resources/ews/ewsclient/transferjob.cpp M +3 -1 resources/ews/ewsclient/transferjob.h https://invent.kde.org/pim/kdepim-runtime/-/commit/aacd0807f13d0694b2bde515964b5f081973da5f Git commit 6173a24fb1aa4a13978185184b74c96934c2aa50 by Carl Schwan. Committed on 26/06/2024 at 08:27. Pushed by carlschwan into branch 'release/24.05'. Fix a memory leak in TransferJob TransferJob wasn't releasing its QNetworkReply upon deletion, which resulted in it and associated resources being leaked. With the many requests spotted in bug 485799 this leads to heavy resource usage. | Heaptrack Before | Heaptrack After | | ------ | ------ | | ![image](/uploads/3d0957e59804bd9e1a01b62f4717e023/image.png) | ![image](/uploads/45ba2527c0a4a1f34da889e01ca763b9/image.png) | (cherry picked from commit aacd0807f13d0694b2bde515964b5f081973da5f) b6fe76cf Fix a memory leak in TransferJob Co-authored-by: Louis Moureaux <m_louis30@yahoo.com> M +6 -5 resources/ews/ewsclient/transferjob.cpp M +3 -1 resources/ews/ewsclient/transferjob.h https://invent.kde.org/pim/kdepim-runtime/-/commit/6173a24fb1aa4a13978185184b74c96934c2aa50 > For sure related to https://bugs.kde.org/show_bug.cgi?id=485799 (either this one or the other should be marked as duplicate)
No, these are two different issues. The resource shouldn't spam hundreds of requests as described in 485799, especially if they all fail.
|