3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +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:
Denis Kenzior 2014-11-05 08:29:33 -06:00
parent 84765ac4db
commit ca18b395e2

View File

@ -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);
}