Re: [PATCH] Free the results of scandir()

Subject: Re: [PATCH] Free the results of scandir()

Date: Tue, 14 Feb 2012 23:47:56 -0400

To: Ethan Glasser-Camp, notmuch@notmuchmail.org

Cc: Ethan Glasser-Camp

From: David Bremner


On Tue,  7 Feb 2012 05:05:03 -0500, Ethan Glasser-Camp <glasse@cs.rpi.edu> wrote:
> From: Ethan Glasser-Camp <ethan@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

Thread: