From 3d4deb972620cae8e8ce4d0050153cc6f39db372 Mon Sep 17 00:00:00 2001 From: Liu Han Date: Fri, 14 Sep 2018 15:36:52 +0800 Subject: [PATCH] feat(mdns): fix bug when clean action memory --- components/mdns/mdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mdns/mdns.c b/components/mdns/mdns.c index 238da14a53..38d678268a 100644 --- a/components/mdns/mdns.c +++ b/components/mdns/mdns.c @@ -3565,7 +3565,7 @@ static void _mdns_free_action(mdns_action_t * action) free(action->data.srv_instance.instance); break; case ACTION_SERVICE_TXT_REPLACE: - free(action->data.srv_txt_replace.txt); + _mdns_free_linked_txt(action->data.srv_txt_replace.txt); break; case ACTION_SERVICE_TXT_SET: free(action->data.srv_txt_set.key); -- 2.40.0