Date: Thu, 17 Oct 2002 11:34:32 -0700 (PDT) From: Sam Leffler <sam@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libdisk disk.c Message-ID: <200210171834.g9HIYW8u075103@repoman.freebsd.org>
index | next in thread | raw e-mail
sam 2002/10/17 11:34:32 PDT
Modified files:
lib/libdisk disk.c
Log:
o ioctl DIOCGDINFO error wasn't checked
o memory wasn't reclaimed in certain cases
o add more msgs under #ifdef DEBUG
o rewrite tangle of for loops for clarity
NB: Open_Disk should redo how it malloc's memory so the caller can free
everything. Documentation says the caller can free the disk list to
reclaim everything but this leaks the indirect strings. Fixing this
is simple for the sysctl case but adds complexity to the fallback,
non-sysctl, case.
Revision Changes Path
1.81 +29 -7 src/lib/libdisk/disk.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210171834.g9HIYW8u075103>
