summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2008-06-10 21:25:30 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2008-06-10 21:25:30 +0000
commit470238947bf55fa0a254bd926b1a28a6e46f0f2a (patch)
tree51e0cab9c1e54aad40f8b15f948f63cd0e248255 /sys
parent8fd7669d3af96087abf4534d0d3d2594aa2f90fa (diff)
Free the counters struct when we free the table entry.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pf_table.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pf_table.c b/sys/net/pf_table.c
index 41b6584f984..031f556f764 100644
--- a/sys/net/pf_table.c
+++ b/sys/net/pf_table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_table.c,v 1.74 2008/06/10 20:55:02 mcbride Exp $ */
+/* $OpenBSD: pf_table.c,v 1.75 2008/06/10 21:25:29 mcbride Exp $ */
/*
* Copyright (c) 2002 Cedric Berger
@@ -843,6 +843,8 @@ pfr_destroy_kentries(struct pfr_kentryworkq *workq)
void
pfr_destroy_kentry(struct pfr_kentry *ke)
{
+ if (ke->pfrke_counters)
+ pool_put(&pfr_kcounters_pl, ke->pfrke_counters);
if (ke->pfrke_intrpool)
pool_put(&pfr_kentry_pl2, ke);
else