svn commit: r240527 - head/bin/df

Eitan Adler eadler at freebsd.org
Sun Sep 16 16:06:12 UTC 2012


On 16 September 2012 10:24, Tijl Coosemans <tijl at coosemans.org> wrote:
> 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.

Ah, I missed that.  I wish this point was brought up earlier.  I'll
revert the commit


-- 
Eitan Adler
Source & Ports committer
X11, Bugbusting teams


More information about the svn-src-all mailing list