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
1 changed files with 2 additions and 1 deletions

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