[PATCH 00/10] Memory leak fixes (bug 82659)

Peter Wu peter at lekensteyn.nl
Wed Nov 26 03:21:07 PST 2014


Hi,

I failed to get the git-bz integration to work (token problems?), so
here are the patches by mail. The bug report (mentioned at every commit
message) is https://bugs.freedesktop.org/show_bug.cgi?id=82659

These memleaks have been found using valgrind and the suppression files
from GNOME.supp[1] and gobject-list with trace patches[2].

Feel free to add 'Signed-off-by: Peter Wu <peter at lekensteyn.nl>' at
every patch if you like, I removed them because Bastien preferred it
that way.

You can also find these series at https://git.lekensteyn.nl/upower.git
branch daemon-free-all (39a84a70b1874a56aeda1f54573a63f7d93a720e).

Kind regards,
Peter

 [1]: https://github.com/dtrebbien/GNOME.supp/pull/3
 [2]: https://github.com/danni/gobject-list/pull/8

Peter Wu (10):
  linux: fix memleak when reading critical action
  daemon: fix memleak in queue_changed_property
  daemon: fix memleaks in GetStatistics and GetHistory
  daemon: plug huge memleak in GetStatistics
  daemon: fix memleak in org.freedesktop.UPower.Wakeups.GetData
  hidpp: fix memleak for each Feature
  daemon: properly disconnect signals, stop memleak
  daemon: fix various reference leaks
  daemon: release resources at shutdown
  daemon: fix dbus proxy leak on shutdown

 src/dummy/up-backend.c       | 20 +++++++++++++++++
 src/freebsd/up-backend.c     | 24 ++++++++++++++++++++
 src/linux/hidpp-device.c     | 13 ++++++++++-
 src/linux/up-backend.c       | 29 +++++++++++++++++++++++-
 src/linux/up-device-supply.c |  5 ++++-
 src/openbsd/up-backend.c     | 16 +++++++++++++
 src/up-backend.h             |  1 +
 src/up-daemon.c              | 53 +++++++++++++++++++++++++++++++++++++++-----
 src/up-daemon.h              |  1 +
 src/up-device-list.c         | 31 ++++++++++++++++++++++++++
 src/up-device-list.h         |  2 ++
 src/up-device.c              | 36 +++++++++++++++++++++++++-----
 src/up-device.h              |  1 +
 src/up-history.c             |  2 +-
 src/up-main.c                |  5 ++++-
 src/up-wakeups.c             |  5 ++++-
 16 files changed, 227 insertions(+), 17 deletions(-)

-- 
2.1.3



More information about the devkit-devel mailing list