| Summary: | PackageKit is leaking ~ 10 MiB for each created thread | ||
|---|---|---|---|
| Product: | PackageKit | Reporter: | Thomas Perl <m> |
| Component: | core | Assignee: | Richard Hughes <richard> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
| Attachments: | Proposed patch -- Call g_thread_unref() on the return value | ||
|
Description
Thomas Perl
2013-11-11 15:09:15 UTC
Created attachment 89034 [details] [review] Proposed patch -- Call g_thread_unref() on the return value Proposed patch - also changed the "GThread *" to just a gboolean to check if we have created a thread at some point, as the object referenced by the "GThread *" will in general not be accessible after g_thread_unref() is called (it will be removed as soon as the thread exits). I've fixed this in a slightly different way: commit 6e582a38ce6da13fda74cfabb41865eabd57dbf0 Author: Richard Hughes <richard@hughsie.com> Date: Mon Nov 11 16:36:37 2013 +0000 Fix memory leak when using new versions of GLib Unref the thread as the thread has a reference to itself. Resolves: https://bugs.freedesktop.org/show_bug.cgi?id=71498 Thanks for hunting this one down! |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.