summaryrefslogtreecommitdiff
path: root/src/up-history.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-11-06 18:50:30 +0100
committerRichard Hughes <richard@hughsie.com>2014-11-26 11:56:08 +0000
commit8988f069862a588d4c48afc703f500037cb0c50a (patch)
treee3062a56bb27d082e1c3ca9585c49833b3168496 /src/up-history.c
parentf3dfc1ea8337aa3ff12e9df71013b315e206efc5 (diff)
downloadupower-8988f069862a588d4c48afc703f500037cb0c50a.tar.gz
daemon: fix memleaks in GetStatistics and GetHistory
dbus_g_method_return[_error] does not claim the passed parameters, the caller must free it theirselves. complex is filled with an GValueArray pointer (see UP_DBUS_STRUCT_DOUBLE_DOUBLE) but its contents are not freed (memleak!). This patch introduces a deprecation warning due to the use g_value_array_free, but since UP_DBUS_STRUCT_DOUBLE_DOUBLE is a GValueArray, this is unavoidable. https://bugs.freedesktop.org/show_bug.cgi?id=82659
Diffstat (limited to 'src/up-history.c')
0 files changed, 0 insertions, 0 deletions