]> granicus.if.org Git - esp-idf/commitdiff
feat(mdns): fix bug when clean action memory
authorLiu Han <liuhan@espressif.com>
Fri, 14 Sep 2018 07:36:52 +0000 (15:36 +0800)
committerLiu Han <liuhan@espressif.com>
Fri, 14 Sep 2018 07:36:52 +0000 (15:36 +0800)
components/mdns/mdns.c

index 238da14a539bf44c08c35db0dbf33b79d0831b67..38d678268af0e7144211a3027d32388ed8c8378d 100644 (file)
@@ -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);