From 9912cd30b68d1826dcb30682426bf3b93695880f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 6 Oct 2011 19:42:24 +0200 Subject: [PATCH] delete interfaces from the avl tree on free --- interface.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.25.1