From 019b1276fdb8ceff3e99749f10e5a6c627b7130b Mon Sep 17 00:00:00 2001
From: Roman Khlopkov <roman.khlopkov@demlabs.net>
Date: Wed, 15 Jul 2020 16:59:22 +0300
Subject: [PATCH] [+] Additional section in DNS answer

---
 modules/net/dap_dns_server.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/net/dap_dns_server.c b/modules/net/dap_dns_server.c
index f67b02f5ec..18b51fc799 100644
--- a/modules/net/dap_dns_server.c
+++ b/modules/net/dap_dns_server.c
@@ -318,6 +318,7 @@ void dap_dns_client_read(dap_client_remote_t *client, void * arg) {
         dap_dns_buf_put_uint16(dns_reply, val);
         dap_dns_buf_put_uint16(dns_reply, l_node_info->hdr.ext_port);
         dap_dns_buf_put_uint64(dns_reply, l_node_info->hdr.address.uint64);
+        DAP_DELETE(l_node_info);
     } else if (flags->rcode == DNS_ERROR_NONE) {
         flags->rcode = DNS_ERROR_NAME;
     }
-- 
GitLab