From: Felix Fietkau Date: Thu, 6 Oct 2011 17:42:24 +0000 (+0200) Subject: delete interfaces from the avl tree on free X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9912cd30b68d1826dcb30682426bf3b93695880f;p=oweals%2Fnetifd.git delete interfaces from the avl tree on free --- diff --git a/interface.c b/interface.c index b8b3fd1..f7ec520 100644 --- a/interface.c +++ b/interface.c @@ -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); }