[GRASS-SVN] r66719 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 3 00:40:32 PST 2015
Author: glynn
Date: 2015-11-03 00:40:32 -0800 (Tue, 03 Nov 2015)
New Revision: 66719
Modified:
grass/trunk/lib/gis/ls.c
Log:
Call closedir() after reading directory
Modified: grass/trunk/lib/gis/ls.c
===================================================================
--- grass/trunk/lib/gis/ls.c 2015-11-03 08:38:09 UTC (rev 66718)
+++ grass/trunk/lib/gis/ls.c 2015-11-03 08:40:32 UTC (rev 66719)
@@ -113,6 +113,7 @@
dir_listing[n] = G_store(dp->d_name);
n++;
}
+ closedir(dfd);
/* Sort list of filenames alphabetically */
qsort(dir_listing, n, sizeof(char *), cmp_names);
More information about the grass-commit
mailing list