summaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-10-19 15:49:21 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-10-19 15:49:21 +0200
commit8125e561e33276cf80c5146c5fa3020b6f1425b8 (patch)
treeb040681ee8518c2dc0e4cfd1fe93b643202042f0 /config.c
parent30e9a048af138b39ee0d53451da43eddd6f48fda (diff)
free unused devices after cleaning up interfaces to get rid of recently-freed bridge devices
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index c51e379..98c46b3 100644
--- a/config.c
+++ b/config.c
@@ -458,7 +458,7 @@ config_init_all(void)
device_reset_old();
device_init_pending();
- device_free_unused(NULL);
vlist_flush(&interfaces);
+ device_free_unused(NULL);
interface_start_pending();
}