Skip to content

Commit 63bf709

Browse files
committed
fix(mdns): Fixes case where we create our own malloc/free allocators, therefore we need to call mdns_mem_free and not free
1 parent 29f1dec commit 63bf709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/mdns/private_include/mdns_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
} \
155155
}
156156

157-
#define queueFree(type, queue) while (queue) { type * _q = queue; queue = queue->next; free(_q); }
157+
#define queueFree(type, queue) while (queue) { type * _q = queue; queue = queue->next; mdns_mem_free(_q); }
158158

159159
#define PCB_STATE_IS_PROBING(s) (s->state > PCB_OFF && s->state < PCB_ANNOUNCE_1)
160160
#define PCB_STATE_IS_ANNOUNCING(s) (s->state > PCB_PROBE_3 && s->state < PCB_RUNNING)

0 commit comments

Comments
 (0)