Up to [cvs.NetBSD.org] / src / usr.bin / systat
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: matt-nb4-mips64-k7-u2a-k9b
Revision 1.71 / (download) - annotate - [select for diffs], Sun Jul 13 20:07:48 2008 UTC (15 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
netbsd-5-base,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20091211,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2
Branch point for: netbsd-5,
matt-nb5-mips64,
jym-xensuspend
Changes since 1.70: +2 -7
lines
Diff to previous 1.70 (colored)
Clarify how one is supposed to use the pointers returned by getutentries() (the utmpentry.c code), specifically with respect to who owns them and when to free them. Now they're owned by utmpentry.c, only. Abolish the freeutentries() function, which was the wrong abstraction; add instead endutentries(), which flushes out the internally managed memory. Update callers as necessary. Some (e.g. talkd) had been leaking memory; others (e.g. syslogd) had been accidentally freeing and reloading utmp more often than necessary. There are a couple untidy bits in users and rwhod that someone should look after sometime, maybe. Fixes PR bin/35131, which was about talkd's memory leak.