summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dns.cpp')
-rw-r--r--src/dns.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index b676b7bde..6788937c6 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -724,6 +724,7 @@ std::string DNS::GetResult()
{
result = dns_getresult(this->fd);
if (result) {
+ dns_close(this->fd);
return result;
} else {
return "";