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 1b846d12aa00d3c840ba134bd28f43268156d20d..a4daa244add550d386fa9a745974d47aa106db6d 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);