From 63bf70914b08d867603360a106ec859b9bbd7b8b Mon Sep 17 00:00:00 2001 From: kevin filipe Date: Thu, 24 Jul 2025 10:18:01 +0200 Subject: [PATCH] fix(mdns): Fixes case where we create our own malloc/free allocators, therefore we need to call mdns_mem_free and not free --- components/mdns/private_include/mdns_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mdns/private_include/mdns_private.h b/components/mdns/private_include/mdns_private.h index ce4c96b63..6bc0891f4 100644 --- a/components/mdns/private_include/mdns_private.h +++ b/components/mdns/private_include/mdns_private.h @@ -154,7 +154,7 @@ } \ } -#define queueFree(type, queue) while (queue) { type * _q = queue; queue = queue->next; free(_q); } +#define queueFree(type, queue) while (queue) { type * _q = queue; queue = queue->next; mdns_mem_free(_q); } #define PCB_STATE_IS_PROBING(s) (s->state > PCB_OFF && s->state < PCB_ANNOUNCE_1) #define PCB_STATE_IS_ANNOUNCING(s) (s->state > PCB_PROBE_3 && s->state < PCB_RUNNING)