From 0c68972d5399c5f0c27c3886353fa3058ca73742 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 2 Aug 2018 20:25:41 -0400 Subject: [PATCH] pimd: Don't leak wheel memory Signed-off-by: Donald Sharp --- pimd/pim_upstream.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c index e3488b6a66..ce58cbd2c8 100644 --- a/pimd/pim_upstream.c +++ b/pimd/pim_upstream.c @@ -1546,6 +1546,10 @@ void pim_upstream_terminate(struct pim_instance *pim) if (pim->upstream_hash) hash_free(pim->upstream_hash); pim->upstream_hash = NULL; + + if (pim->upstream_sg_wheel) + wheel_delete(pim->upstream_sg_wheel); + pim->upstream_sg_wheel = NULL; } int pim_upstream_equal(const void *arg1, const void *arg2) -- 2.39.5