are you leaking clients here?

btw - run your tests under ASAN (and TSAN if you can) using Valgrind.