From 939391590e903eb5c81474d0a3faeec0d8e0bfeb Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Thu, 11 May 2023 13:15:06 -0700 Subject: [PATCH] client: clear nameServers during close() --- src/client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.cpp b/src/client.cpp index 7f6d050..f74b29e 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -686,6 +686,8 @@ void ContextImpl::close() conns.clear(); chans.clear(); + // breaks a ref. loop between Connection and ClientContextImpl + nameServers.clear(); // internal_self.use_count() may be >1 if // we are orphaning some Operations