aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2023-12-21 18:53:49 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2023-12-21 18:53:49 +0000
commitc1c55da49fd55c01771f8cf1f7255a37b79735d7 (patch)
treececb58431fc84aaefc7bbe518aa2f3cb865613b9
parent3ff574c5e1d1d5d07763a14f22d6f9d7291550c6 (diff)
downloadsrc-c1c55da49fd55c01771f8cf1f7255a37b79735d7.tar.gz
src-c1c55da49fd55c01771f8cf1f7255a37b79735d7.zip
pfil: don't leak pfil_head_t on interface detach
PR: 256714 Submitted by: jcaplan@blackberry.com
-rw-r--r--sys/net/pfil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/pfil.c b/sys/net/pfil.c
index 4b4eeca362c1..3ceffcefb758 100644
--- a/sys/net/pfil.c
+++ b/sys/net/pfil.c
@@ -295,6 +295,7 @@ pfil_head_unregister(pfil_head_t ph)
free(link, M_PFIL);
}
PFIL_UNLOCK();
+ free(ph, M_PFIL);
}
pfil_hook_t