summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/common/dns_resolve.cc1
-rw-r--r--src/test/osd/TestOSDScrub.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/common/dns_resolve.cc b/src/common/dns_resolve.cc
index a44510d6dea..435bcc657e4 100644
--- a/src/common/dns_resolve.cc
+++ b/src/common/dns_resolve.cc
@@ -56,6 +56,7 @@ DNSResolver::~DNSResolver()
#ifdef HAVE_RES_NQUERY
for (auto iter = states.begin(); iter != states.end(); ++iter) {
struct __res_state *s = *iter;
+ res_nclose(s);
delete s;
}
#endif
diff --git a/src/test/osd/TestOSDScrub.cc b/src/test/osd/TestOSDScrub.cc
index 4c6d4cceedf..28d94ed66da 100644
--- a/src/test/osd/TestOSDScrub.cc
+++ b/src/test/osd/TestOSDScrub.cc
@@ -196,6 +196,7 @@ TEST(TestOSDScrub, scrub_time_permit) {
now = utime_t(mktime(&tm), 0);
ret = osd->scrub_time_permit(now);
ASSERT_FALSE(ret);
+ mc.shutdown();
}
// Local Variables: