diff options
author | Pavel Vasin <rat4vier@gmail.com> | 2012-04-25 15:33:52 +0400 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2012-04-26 17:39:42 +0100 |
commit | bf56cecab4d0c654ddff1c1884c7b6726138b9ab (patch) | |
tree | cd2511bdad0479624453b8711f7ea6e52fd8547f /libupower-glib | |
parent | 28c8653ed8d43bfdcac4bb09c0fe16b5ac124668 (diff) | |
download | upower-bf56cecab4d0c654ddff1c1884c7b6726138b9ab.tar.gz |
libupower-glib: fix small memory leak
Signed-off-by: Richard Hughes <richard@hughsie.com>
Diffstat (limited to 'libupower-glib')
-rw-r--r-- | libupower-glib/up-client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libupower-glib/up-client.c b/libupower-glib/up-client.c index 8dccbde..8ea131b 100644 --- a/libupower-glib/up-client.c +++ b/libupower-glib/up-client.c @@ -339,6 +339,7 @@ up_client_get_properties_sync (UpClient *client, GCancellable *cancellable, GErr g_warning ("No 'DaemonVersion' property"); goto out; } + g_free (client->priv->daemon_version); client->priv->daemon_version = g_strdup (g_value_get_string (value)); value = g_hash_table_lookup (props, "CanSuspend"); |