fix free after use on shutdown
authorJohn Crispin <blogic@openwrt.org>
Tue, 2 Sep 2014 19:25:19 +0000 (21:25 +0200)
committerJohn Crispin <blogic@openwrt.org>
Tue, 2 Sep 2014 19:25:19 +0000 (21:25 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
interface.c

index 1b846d1..a4daa24 100644 (file)
@@ -595,7 +595,7 @@ void interface_shutdown(void)
                        service_reply_a(iface, 0);
                }
        vlist_for_each_element(&interfaces, iface, node)
-               interface_free(iface);
+               interface_close(iface);
 }
 
 VLIST_TREE(interfaces, avl_strcmp, iface_update_cb, false, false);