summaryrefslogtreecommitdiff
path: root/src/up-history.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@canonical.com>2013-01-29 13:57:53 +0000
committerMartin Pitt <martinpitt@gnome.org>2013-01-29 15:08:18 +0100
commitb59d9848d40ded74a6ae71d1bc7b912a904da435 (patch)
treef2506542d34de4cac42605b702bc89673762d95f /src/up-history.c
parent60732b12d64c52e92e534dc9f711f414f2e0d41f (diff)
downloadupower-b59d9848d40ded74a6ae71d1bc7b912a904da435.tar.gz
Fix two memory leaks
up_device_supply_get_design_voltage(): up_device_supply_get_string() returns a newly allocated copy. up_history_finalize(): Forgot to free history->priv->dir https://bugs.freedesktop.org/show_bug.cgi?id=60019
Diffstat (limited to 'src/up-history.c')
-rw-r--r--src/up-history.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/up-history.c b/src/up-history.c
index 08e101b..cd16f36 100644
--- a/src/up-history.c
+++ b/src/up-history.c
@@ -922,6 +922,7 @@ up_history_finalize (GObject *object)
g_ptr_array_unref (history->priv->data_time_empty);
g_free (history->priv->id);
+ g_free (history->priv->dir);
g_return_if_fail (history->priv != NULL);