From 30c8631e52fcc309042f88e4cd93ee587968c1b6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 9 Jun 2014 21:35:47 +0200 Subject: [PATCH] call announce_free from interface_free Signed-off-by: Felix Fietkau --- interface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface.c b/interface.c index 866bd05..41e0daf 100644 --- a/interface.c +++ b/interface.c @@ -32,6 +32,7 @@ #include "interface.h" #include "util.h" #include "dns.h" +#include "announce.h" struct interface *cur_iface = NULL; @@ -75,6 +76,7 @@ static void interface_free(struct interface *iface) if (cur_iface == iface) cur_iface = NULL; + announce_free(iface); if (iface->fd.fd >= 0) { uloop_fd_delete(&iface->fd); close(iface->fd.fd); -- 2.11.0