diff options
Diffstat (limited to 'wireless.c')
-rw-r--r-- | wireless.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -270,9 +270,10 @@ __wireless_device_set_up(struct wireless_device *wdev) static void wireless_device_free(struct wireless_device *wdev) { - vlist_flush_all(&wdev->interfaces); - free(wdev->config); - free(wdev); + vlist_flush_all(&wdev->interfaces); + avl_delete(&wireless_devices.avl, &wdev->node.avl); + free(wdev->config); + free(wdev); } static void |