]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/dns_resolve.cc
update sources to v12.2.3
[ceph.git] / ceph / src / common / dns_resolve.cc
index 13f06548e84d040a9ab17da1beb06dfb24430d6d..a2b296a676f6d86cce2868501091153209bf5f2f 100644 (file)
@@ -197,6 +197,9 @@ int DNSResolver::resolve_ip_addr(CephContext *cct, const string& hostname,
   if (r < 0) {
     return r;
   }
+  auto put_state = make_scope_guard([res, this] {
+      this->put_state(res);
+    });
   return this->resolve_ip_addr(cct, &res, hostname, addr);
 #else
   return this->resolve_ip_addr(cct, NULL, hostname, addr);