[PATCH] Free the results of scandir()

David Bremner david at tethera.net
Tue Feb 14 19:47:56 PST 2012


On Tue,  7 Feb 2012 05:05:03 -0500, Ethan Glasser-Camp <glasse at cs.rpi.edu> wrote:
> From: Ethan Glasser-Camp <ethan at betacantrips.com>
> 
> scandir() returns "strings allocated via malloc(3)" which are then
> "collected in array namelist which is allocated via
> malloc(3)". Currently we just free the array namelist. Instead, free
> all the entries of namelist, and then free namelist.

pushed, thanks

d


More information about the notmuch mailing list