From 4a003fefc55ea828ffaa6e47186d035a450c3160 Mon Sep 17 00:00:00 2001 From: "Deomid \"rojer\" Ryabkov" Date: Sat, 10 Jul 2021 04:05:41 +0100 Subject: [PATCH] Free the service entry being removed Fixes a small leak --- src/mongoose/mgos_dns_sd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mongoose/mgos_dns_sd.c b/src/mongoose/mgos_dns_sd.c index a61b189..1b08cda 100644 --- a/src/mongoose/mgos_dns_sd.c +++ b/src/mongoose/mgos_dns_sd.c @@ -495,6 +495,7 @@ bool mgos_dns_sd_remove_service_instance(const char *name, const char *proto, if (e == NULL) return false; SLIST_REMOVE(&s_instances, e, mgos_dns_sd_service_entry, next); // TODO: Send a good-bye packet for the associated records. + mgos_dns_sd_service_entry_free(e); return true; }