diff options
author | Ethan Glasser-Camp <ethan@betacantrips.com> | 2012-02-07 05:05:03 -0500 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-02-14 23:44:30 -0400 |
commit | 5f39979a4aa2aea7d587201702fa3443248334bd (patch) | |
tree | 37841c9a67391cbc996bd89658ddd03a6fdecfa8 /version | |
parent | d8bff4b3af412cd56283e6e2cda256b79d2fd40b (diff) |
Free the results of scandir()
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.
entry only points to elements of namelist, so we don't free it
separately.
Diffstat (limited to 'version')
0 files changed, 0 insertions, 0 deletions