freebsd-hackers£¬hello Question about 5.4 kernel source code. I have some question about strust proc's initialize. Kernel use proc_zone to allocate proc items and initialize them with proc_init (sys\kern\kern_proc.c) function. In this function, we can find the field proc.p_stats is allocated with pstats_alloc(), as p->p_stats = pstats_alloc(); and pstats_alloc is realized as malloc(sizeof(struct pstats), M_SUBPROC, M_ZERO|M_WAITOK); But I can't find where this field is freed. If it will not be release, will there be memory leakage? ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡nocool ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡nocool_at_263.net ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-10-21Received on Fri Oct 21 2005 - 11:13:30 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:46 UTC