Browse Source

interface: add missing cache cleanup on interface free

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Felix Fietkau 3 months ago
parent
commit
8a0c9db006
1 changed files with 1 additions and 0 deletions
  1. 1 0
      interface.c

+ 1 - 0
interface.c

@@ -164,6 +164,7 @@ static struct interface *interface_lookup(unsigned int ifindex, enum umdns_socke
 
 static void interface_free(struct interface *iface)
 {
+	cache_cleanup(iface);
 	announce_free(iface);
 	free(iface->addrs.v4);
 	free(iface);