diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-03 02:25:41 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-03 02:25:41 +0200 |
commit | 0c68972d5399c5f0c27c3886353fa3058ca73742 (patch) | |
tree | 7f9505b99087e1d126f04634aa9f840bdeae47d4 /pimd/pim_upstream.c | |
parent | pimd: Properly cleanup ssm (diff) | |
download | frr-0c68972d5399c5f0c27c3886353fa3058ca73742.tar.xz frr-0c68972d5399c5f0c27c3886353fa3058ca73742.zip |
pimd: Don't leak wheel memory
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_upstream.c')
-rw-r--r-- | pimd/pim_upstream.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c index e3488b6a6..ce58cbd2c 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) |