interface: add missing cache cleanup on interface free
authorFelix Fietkau <nbd@nbd.name>
Fri, 5 Jan 2024 21:13:02 +0000 (22:13 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 5 Jan 2024 21:13:02 +0000 (22:13 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
interface.c

index ca4b0b3887a8498cc92335201e4ea5edb1997adc..ad25b39b984ad7d9b9e392da3db5a3f39bbcec89 100644 (file)
@@ -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);