aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2023-12-21 18:53:49 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2024-01-09 00:29:05 +0000
commit7cfc847aba1356c34ea12d73f6ac72793056fcde (patch)
tree20c7c5480046052af1fd7f477adf3d67332424b3
parentac84975e4a1f89a608a3c6ba8f8322b19a83421e (diff)
downloadsrc-7cfc847aba1356c34ea12d73f6ac72793056fcde.tar.gz
src-7cfc847aba1356c34ea12d73f6ac72793056fcde.zip
pfil: don't leak pfil_head_t on interface detach
PR: 256714 Submitted by: jcaplan@blackberry.com (cherry picked from commit c1c55da49fd55c01771f8cf1f7255a37b79735d7)
-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