3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:39:39 +01:00

client: fix leaks

This commit is contained in:
Tim Kourt 2017-05-12 12:15:37 -07:00 committed by Denis Kenzior
parent b36dd5203e
commit 1fed159f4a
2 changed files with 4 additions and 1 deletions

View File

@ -553,6 +553,8 @@ static void interfaces_removed_callback(struct l_dbus_message *message,
proxy_interface_unbind_dependencies(proxy);
l_queue_remove(proxy_interfaces, proxy);
proxy_interface_destroy(proxy);
}
}

View File

@ -376,7 +376,8 @@ static void disconnect_callback(struct l_io *io, void *user_data)
void display_enable_cmd_prompt(void)
{
io = l_io_new(fileno(stdin));
if (!io)
io = l_io_new(fileno(stdin));
l_io_set_read_handler(io, read_handler, NULL, NULL);
l_io_set_disconnect_handler(io, disconnect_callback, NULL, NULL);