delete interfaces from the avl tree on free
authorFelix Fietkau <nbd@openwrt.org>
Thu, 6 Oct 2011 17:42:24 +0000 (19:42 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 6 Oct 2011 17:42:24 +0000 (19:42 +0200)
interface.c

index b8b3fd13fa983ba69d893b026c6b2a54c93ac82f..f7ec520a1dfc0bc3e397023ce9ae48e7c0a56866 100644 (file)
@@ -196,6 +196,7 @@ interface_do_free(struct interface *iface)
        interface_cleanup(iface);
        free(iface->config);
        netifd_ubus_remove_interface(iface);
+       avl_delete(&interfaces.avl, &iface->node.avl);
        free(iface);
 }