[GRASS-SVN] r30300 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 23 05:10:39 EST 2008
Author: glynn
Date: 2008-02-23 05:10:39 -0500 (Sat, 23 Feb 2008)
New Revision: 30300
Modified:
grass/trunk/lib/gis/get_row.c
grass/trunk/lib/gis/open_misc.c
Log:
Don't free return values from G_find_*
Modified: grass/trunk/lib/gis/get_row.c
===================================================================
--- grass/trunk/lib/gis/get_row.c 2008-02-23 05:58:58 UTC (rev 30299)
+++ grass/trunk/lib/gis/get_row.c 2008-02-23 10:10:39 UTC (rev 30300)
@@ -883,8 +883,6 @@
fcb->null_file_exists = 0;
return -1;
}
-
- G_free(dummy);
null_fd = G_open_old_misc("cell_misc", NULL_FILE, name, mapset);
if (null_fd < 0)
Modified: grass/trunk/lib/gis/open_misc.c
===================================================================
--- grass/trunk/lib/gis/open_misc.c 2008-02-23 05:58:58 UTC (rev 30299)
+++ grass/trunk/lib/gis/open_misc.c 2008-02-23 10:10:39 UTC (rev 30300)
@@ -56,7 +56,7 @@
}
if ((dummy = G_find_file2_misc (dir, element, name, mapset)) == NULL)
return -1;
- G_free (dummy);
+
G__file_name_misc (path, dir, element, name, mapset);
return open (path, 0);
More information about the grass-commit
mailing list