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); }