diff options
author | glebius <glebius@FreeBSD.org> | 2014-10-16 20:43:12 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2014-10-16 20:43:12 +0000 |
commit | 86f98e492eebb0155d25616d87c39cae90ec0723 (patch) | |
tree | 35a55a37450342b25ce9db0f8c55388632c6095f /sys | |
parent | d66b9a99493aa3262767cbaafd361673d11e0481 (diff) | |
download | FreeBSD-src-86f98e492eebb0155d25616d87c39cae90ec0723.zip FreeBSD-src-86f98e492eebb0155d25616d87c39cae90ec0723.tar.gz |
Merge r272358 from head:
Use rn_detachhead() instead of direct free(9) for radix tables.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netpfil/pf/pf_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |