mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-09 03:38:05 +02:00
libupower-glib: fix small memory leak
Signed-off-by: Richard Hughes <richard@hughsie.com>
This commit is contained in:
parent
28c8653ed8
commit
bf56cecab4
1 changed files with 1 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue