Get rid of M_TEMP.

This commit is contained in:
Ed Schouten 2009-05-26 18:33:36 +00:00
parent 2b85e080e3
commit 8b0d29d858

View File

@ -1069,7 +1069,7 @@ sysctl_kern_ttys(SYSCTL_HANDLER_ARGS)
return (0);
}
xtlist = xt = malloc(lsize, M_TEMP, M_WAITOK);
xtlist = xt = malloc(lsize, M_TTY, M_WAITOK);
TAILQ_FOREACH(tp, &tty_list, t_list) {
tty_lock(tp);
@ -1080,7 +1080,7 @@ sysctl_kern_ttys(SYSCTL_HANDLER_ARGS)
sx_sunlock(&tty_list_sx);
error = SYSCTL_OUT(req, xtlist, lsize);
free(xtlist, M_TEMP);
free(xtlist, M_TTY);
return (error);
}