Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_exit.c
Show First 20 Lines • Show All 418 Lines • ▼ Show 20 Lines | #endif | ||||
vmspace_exit(td); | vmspace_exit(td); | ||||
(void)acct_process(td); | (void)acct_process(td); | ||||
#ifdef KTRACE | #ifdef KTRACE | ||||
ktrprocexit(td); | ktrprocexit(td); | ||||
#endif | #endif | ||||
/* | /* | ||||
* Release reference to text vnode | * Release reference to text vnode etc | ||||
*/ | */ | ||||
if (p->p_textvp != NULL) { | if (p->p_textvp != NULL) { | ||||
vrele(p->p_textvp); | vrele(p->p_textvp); | ||||
p->p_textvp = NULL; | p->p_textvp = NULL; | ||||
} | } | ||||
if (p->p_textdvp != NULL) { | |||||
vrele(p->p_textdvp); | |||||
p->p_textdvp = NULL; | |||||
} | |||||
free(p->p_binname, M_PARGS); | |||||
markj: Consider setting `p->p_binname = NULL` here, like we're doing for other fields. | |||||
/* | /* | ||||
* Release our limits structure. | * Release our limits structure. | ||||
*/ | */ | ||||
lim_free(p->p_limit); | lim_free(p->p_limit); | ||||
p->p_limit = NULL; | p->p_limit = NULL; | ||||
tidhash_remove(td); | tidhash_remove(td); | ||||
▲ Show 20 Lines • Show All 991 Lines • Show Last 20 Lines |
Consider setting p->p_binname = NULL here, like we're doing for other fields.