[GRASS-SVN] r29711 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 14 17:24:06 EST 2008
Author: glynn
Date: 2008-01-14 17:24:06 -0500 (Mon, 14 Jan 2008)
New Revision: 29711
Modified:
grass/trunk/lib/gis/open.c
Log:
Don't free value returned from G_find_file2(); it may not be dynamically allocated
Modified: grass/trunk/lib/gis/open.c
===================================================================
--- grass/trunk/lib/gis/open.c 2008-01-14 22:16:45 UTC (rev 29710)
+++ grass/trunk/lib/gis/open.c 2008-01-14 22:24:06 UTC (rev 29711)
@@ -109,7 +109,6 @@
}
if ((dummy = G_find_file2 (element, name, mapset)) == NULL)
return -1;
- G_free (dummy);
G__file_name (path, element, name, mapset);
return open (path, 0);
More information about the grass-commit
mailing list