hs: Fix memory leak in client cache

Fixes #40356

Signed-off-by: David Goulet <dgoulet@torproject.org>
9 jobs for ticket40356_045_01 in 16 minutes and 18 seconds (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Test
passed #18763
debian-disable-dirauth

00:05:50

passed #18764
debian-disable-relay

00:06:08

passed #18759
debian-distcheck

00:08:06

passed #18760
debian-docs

00:03:08

passed #18758
debian-hardened

00:08:06

passed #18761
debian-integration

00:16:02

passed #18757
debian-minimal

00:06:37

passed #18765
debian-nss

00:05:51

passed #18762
debian-tracing

00:08:27