svn commit: r240527 - head/bin/df

Tijl Coosemans tijl at coosemans.org
Sun Sep 16 14:24:49 UTC 2012


On 16-09-2012 01:27, Eitan Adler wrote:
> On 15 September 2012 17:20, Bruce Cran <bruce at cran.org.uk> wrote:
>> On 15/09/2012 21:57, Tijl Coosemans wrote:
>>>
>>> Freeing memory right before exiting is a waste of time. The tool shouldn't
>>> complain about it.
> 
> Perhaps, but tools do. This has already been brought up on cfe-dev.
> 
>> "/Stop wasting time and just exit already/." -
>> http://blogs.msdn.com/b/oldnewthing/archive/2012/01/05/10253268.aspx
> 
> I read this blog post when it came out. :)

In this case the free is actually wrong, because the pointer can point
to memory allocated by getmntinfo(3) and that manpage says an application
cannot free it.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20120916/f0d76197/signature.pgp


More information about the svn-src-head mailing list