From: Donald Sharp Date: Fri, 3 Aug 2018 00:25:41 +0000 (-0400) Subject: pimd: Don't leak wheel memory X-Git-Tag: frr-6.1-dev~100^2~5 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0c68972d5399c5f0c27c3886353fa3058ca73742;p=matthieu%2Ffrr.git pimd: Don't leak wheel memory Signed-off-by: Donald Sharp --- 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)