Skip to content

Commit 8dbf0e4

Browse files
authored
Merge pull request #855 from cosmicKev/mdns-fix-custom-allocator
Fixes case where we create our own malloc/free allocators, therefore … (IDFGH-16053)
2 parents 29f1dec + 63bf709 commit 8dbf0e4

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)