diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-11-06 18:50:30 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-11-20 15:59:38 +0100 |
commit | 54dfc704836582463b2c3cee190916163b63b7b2 (patch) | |
tree | e3062a56bb27d082e1c3ca9585c49833b3168496 /src/up-history.c | |
parent | 4d068a7730e5dad6ed91dbb3eee16b3ba49eec44 (diff) | |
download | upower-54dfc704836582463b2c3cee190916163b63b7b2.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