Commit aa1aea88 authored by Anderson Lizardo's avatar Anderson Lizardo Committed by Marcel Holtmann
Browse files

gdbus: Fix memory leak

data->conn and data->path must be destroyed before freeing "data".
parent 827aacca
......@@ -1253,6 +1253,8 @@ static struct generic_data *object_path_ref(DBusConnection *connection,
if (!dbus_connection_register_object_path(connection, path,
&generic_table, data)) {
dbus_connection_unref(data->conn);
g_free(data->path);
g_free(data->introspect);
g_free(data);
return NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment