wiphy: Fix memory leak
==4249== 231 (32 direct, 199 indirect) bytes in 1 blocks are definitely lost in loss record 10 of 10 ==4249== at 0x4C2B970: malloc (vg_replace_malloc.c:296) ==4249== by 0x40CF5D: l_malloc (util.c:62) ==4249== by 0x40F4DA: l_settings_new (settings.c:82) ==4249== by 0x40CE9E: storage_network_open (storage.c:180) ==4249== by 0x40499E: network_connect_psk (wiphy.c:307) ==4249== by 0x40499E: network_connect (wiphy.c:359) ==4249== by 0x41D85E: _dbus_object_tree_dispatch (dbus-service.c:845) ==4249== by 0x416A86: message_read_handler (dbus.c:297) ==4249== by 0x4119F4: io_callback (io.c:120) ==4249== by 0x411032: l_main_run (main.c:346) ==4249== by 0x40253E: main (main.c:171)
This commit is contained in:
parent
251f5904d4
commit
4c11845198
|
@ -443,6 +443,7 @@ static void network_free(void *data)
|
||||||
struct l_dbus *dbus;
|
struct l_dbus *dbus;
|
||||||
|
|
||||||
agent_request_cancel(network->agent_request);
|
agent_request_cancel(network->agent_request);
|
||||||
|
l_settings_free(network->settings);
|
||||||
|
|
||||||
dbus = dbus_get_bus();
|
dbus = dbus_get_bus();
|
||||||
l_dbus_unregister_interface(dbus, network->object_path,
|
l_dbus_unregister_interface(dbus, network->object_path,
|
||||||
|
|
Loading…
Reference in New Issue