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
[EMAIL PROTECTED]
2005-10-21
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"