When a multicast route is created with embedded RP the channel oil
never gets decremented when `clear ipv6 mroute` is called.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
}
if (desired == GM_SG_NOINFO) {
+ /*
+ * If oil is still present then get ride of it or we will leak
+ * this data structure.
+ */
+ if (sg->oil)
+ pim_channel_oil_del(sg->oil, __func__);
+
/* multiple paths can lead to the last state going away;
* t_sg_expire can still be running if we're arriving from
* another path.