According to Joey Degges on 2/16/2010 2:02 AM:
> Hello,
> 
> At sort.c:3271 'files' is allocated but it is not free'd before main exits:
>     files = xnmalloc (argc, sizeof *files);

Thanks for the patches.  However, calling free() immediately before exit()
is a lint-like activity - it is actually SLOWER to explicitly free memory
rather than just exiting and letting the OS cleanup reclaim the memory as
part of process death.  If we accept patches like this, it will be to make
other leak detections easier, but as such, it should probably be properly
guarded by #if LINT or something similar to make it apparent that it is
only needed when looking for leaks and not in the common case.

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             e...@byu.net

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to