When shutting down, actually delete the right data
structures.
Stupid cut-n-paste error on my part.
Ticket: CM-14018
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pim_channel_oil_list = NULL;
if (pim_channel_oil_hash)
- hash_free (pim_upstream_hash);
+ hash_free (pim_channel_oil_hash);
+ pim_channel_oil_hash = NULL;
}
void pim_channel_oil_free(struct channel_oil *c_oil)
void pim_upstream_terminate (void)
{
if (pim_upstream_list)
- list_free (pim_upstream_list);
+ list_delete (pim_upstream_list);
pim_upstream_list = NULL;
if (pim_upstream_hash)
hash_free (pim_upstream_hash);
+ pim_upstream_hash = NULL;
}
static int