[GRASS-SVN] r66724 - grass/branches/releasebranch_7_0/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 3 01:34:32 PST 2015


Author: neteler
Date: 2015-11-03 01:34:31 -0800 (Tue, 03 Nov 2015)
New Revision: 66724

Modified:
   grass/branches/releasebranch_7_0/lib/gis/ls.c
Log:
libgis: Call closedir() after reading directory (trunk, r66719)

Modified: grass/branches/releasebranch_7_0/lib/gis/ls.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/gis/ls.c	2015-11-03 09:31:04 UTC (rev 66723)
+++ grass/branches/releasebranch_7_0/lib/gis/ls.c	2015-11-03 09:34:31 UTC (rev 66724)
@@ -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