[GRASS-SVN] r32124 - grass-addons/general/g.xremove
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 15 16:50:06 EDT 2008
Author: hcho
Date: 2008-07-15 16:50:06 -0400 (Tue, 15 Jul 2008)
New Revision: 32124
Modified:
grass-addons/general/g.xremove/main.c
Log:
Free all allocated buffers
Modified: grass-addons/general/g.xremove/main.c
===================================================================
--- grass-addons/general/g.xremove/main.c 2008-07-15 20:44:14 UTC (rev 32123)
+++ grass-addons/general/g.xremove/main.c 2008-07-15 20:50:06 UTC (rev 32124)
@@ -91,8 +91,11 @@
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
- G_free(buf);
- G_free(buf2);
+ for (n = 0; n < nlist; n++) {
+ o = opt[n];
+ G_free((char *)o->gisprompt);
+ G_free((char *)o->description);
+ }
location_path = G_location_path();
mapset = G_mapset();
More information about the grass-commit
mailing list