mdns: fix memory free issue when repeating the query in reply

The repeated query will be copied in the next event loop while the
memory is freed instantly. Delay the free to fix this issue.
This commit is contained in:
Jiacheng Guo
2021-04-16 15:19:34 +08:00
parent 2aa48c9558
commit 5f244c86f2
2 changed files with 47 additions and 6 deletions
@@ -299,6 +299,7 @@ typedef struct mdns_out_question_s {
const char * service;
const char * proto;
const char * domain;
bool own_dynamic_memory;
} mdns_out_question_t;
typedef struct mdns_out_answer_s {