summaryrefslogtreecommitdiff
path: root/zebra/zebra_router.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_router.c')
-rw-r--r--zebra/zebra_router.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c
index 676475355e..6271d029fb 100644
--- a/zebra/zebra_router.c
+++ b/zebra/zebra_router.c
@@ -241,9 +241,9 @@ void zebra_router_terminate(void)
zebra_pbr_ipset_entry_free);
hash_clean_and_free(&zrouter.ipset_hash, zebra_pbr_ipset_free);
hash_clean_and_free(&zrouter.iptable_hash, zebra_pbr_iptable_free);
- hash_clean_and_free(&zrouter.filter_hash, NULL);
- hash_clean_and_free(&zrouter.qdisc_hash, NULL);
- hash_clean_and_free(&zrouter.class_hash, NULL);
+ hash_clean_and_free(&zrouter.filter_hash, (void (*)(void *)) zebra_tc_filter_free);
+ hash_clean_and_free(&zrouter.qdisc_hash, (void (*)(void *)) zebra_tc_qdisc_free);
+ hash_clean_and_free(&zrouter.class_hash, (void (*)(void *)) zebra_tc_class_free);
#ifdef HAVE_SCRIPTING
zebra_script_destroy();