From a5d12801498b0c470fdcbec08e0ed4726c3fae4f Mon Sep 17 00:00:00 2001 From: jlemon Date: Sun, 30 Sep 2001 17:00:56 +0000 Subject: [PATCH] When FREE()ing kqueue related structures, charge them to the correct bucket. Submitted by: iedowse Forgotten by: jlemon --- sys/kern/kern_descrip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index e5dec1c97f2a..d28a798581ce 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -56,7 +57,6 @@ #include #include #include -#include #include #include #include @@ -1182,9 +1182,9 @@ fdfree(td) if (fdp->fd_jdir) vrele(fdp->fd_jdir); if (fdp->fd_knlist) - FREE(fdp->fd_knlist, M_TEMP); + FREE(fdp->fd_knlist, M_KQUEUE); if (fdp->fd_knhash) - FREE(fdp->fd_knhash, M_TEMP); + FREE(fdp->fd_knhash, M_KQUEUE); FREE(fdp, M_FILEDESC); }