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_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->bss_list, bss_free);
|
||||||
l_queue_destroy(netdev->old_bss_list, bss_free);
|
l_queue_destroy(netdev->old_bss_list, bss_free);
|
||||||
|
|
||||||
l_hashmap_destroy(netdev->networks, network_free);
|
|
||||||
l_free(netdev);
|
l_free(netdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue