mdns: fix memory leak when query for service receives multiple ptr entries for one instance
mdns: fix memory leak when query for service receives multiple ptr entries for one instance

fixes redmine issue 27300

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf