]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: Don't leak wheel memory
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 3 Aug 2018 00:25:41 +0000 (20:25 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 3 Aug 2018 00:25:41 +0000 (20:25 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_upstream.c

index e3488b6a66d7423b527e358fa1e48cc4689583cb..ce58cbd2c89777d8c4d6784ca66ac4c53a3da739 100644 (file)
@@ -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)