From: John Crispin Date: Tue, 2 Sep 2014 19:25:19 +0000 (+0200) Subject: fix free after use on shutdown X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b7e5cb7ab91a9487ec71a14b706b5589cefe9052;p=oweals%2Fmdnsd.git fix free after use on shutdown Signed-off-by: John Crispin --- diff --git a/interface.c b/interface.c index 1b846d1..a4daa24 100644 --- a/interface.c +++ b/interface.c @@ -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);