From 470238947bf55fa0a254bd926b1a28a6e46f0f2a Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Tue, 10 Jun 2008 21:25:30 +0000 Subject: Free the counters struct when we free the table entry. --- sys/net/pf_table.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/net/pf_table.c') 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 -- cgit v1.2.3