[GRASS-SVN] r30068 - grass/branches/releasebranch_6_3/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 10 14:43:17 EST 2008
Author: neteler
Date: 2008-02-10 14:43:17 -0500 (Sun, 10 Feb 2008)
New Revision: 30068
Modified:
grass/branches/releasebranch_6_3/lib/gis/open.c
Log:
Don't free value returned from G_find_file2(); it may not be dynamically allocated lib/gis/open.c
(merge from HEAD)
Modified: grass/branches/releasebranch_6_3/lib/gis/open.c
===================================================================
--- grass/branches/releasebranch_6_3/lib/gis/open.c 2008-02-10 19:42:48 UTC (rev 30067)
+++ grass/branches/releasebranch_6_3/lib/gis/open.c 2008-02-10 19:43:17 UTC (rev 30068)
@@ -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