mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
wiphy: Fix valgrind complaint
The network list must be destroyed before the BSS list as that is used inside network_free
This commit is contained in:
parent
84765ac4db
commit
ca18b395e2
@ -491,10 +491,11 @@ static void netdev_free(void *data)
|
||||
|
||||
l_debug("Freeing interface %s", netdev->name);
|
||||
|
||||
l_hashmap_destroy(netdev->networks, network_free);
|
||||
|
||||
l_queue_destroy(netdev->bss_list, bss_free);
|
||||
l_queue_destroy(netdev->old_bss_list, bss_free);
|
||||
|
||||
l_hashmap_destroy(netdev->networks, network_free);
|
||||
l_free(netdev);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user