From 86f98e492eebb0155d25616d87c39cae90ec0723 Mon Sep 17 00:00:00 2001 From: glebius Date: Thu, 16 Oct 2014 20:43:12 +0000 Subject: Merge r272358 from head: Use rn_detachhead() instead of direct free(9) for radix tables. --- sys/netpfil/pf/pf_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/netpfil/pf/pf_table.c b/sys/netpfil/pf/pf_table.c index 595a365..1dd0095 100644 --- a/sys/netpfil/pf/pf_table.c +++ b/sys/netpfil/pf/pf_table.c @@ -1854,11 +1854,11 @@ pfr_destroy_ktable(struct pfr_ktable *kt, int flushaddr) } if (kt->pfrkt_ip4 != NULL) { RADIX_NODE_HEAD_DESTROY(kt->pfrkt_ip4); - free((caddr_t)kt->pfrkt_ip4, M_RTABLE); + rn_detachhead((void **)&kt->pfrkt_ip4); } if (kt->pfrkt_ip6 != NULL) { RADIX_NODE_HEAD_DESTROY(kt->pfrkt_ip6); - free((caddr_t)kt->pfrkt_ip6, M_RTABLE); + rn_detachhead((void **)&kt->pfrkt_ip6); } if (kt->pfrkt_shadow != NULL) pfr_destroy_ktable(kt->pfrkt_shadow, flushaddr); -- cgit v1.1