[GRASS-SVN] r68895 - sandbox/bo/i.segment.gsoc2016/i.segment
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 8 08:32:54 PDT 2016
Author: hao2309
Date: 2016-07-08 08:32:54 -0700 (Fri, 08 Jul 2016)
New Revision: 68895
Modified:
sandbox/bo/i.segment.gsoc2016/i.segment/write_output.c
Log:
fixed g_free(shift_out_name)
Modified: sandbox/bo/i.segment.gsoc2016/i.segment/write_output.c
===================================================================
--- sandbox/bo/i.segment.gsoc2016/i.segment/write_output.c 2016-07-08 08:26:58 UTC (rev 68894)
+++ sandbox/bo/i.segment.gsoc2016/i.segment/write_output.c 2016-07-08 15:32:54 UTC (rev 68895)
@@ -46,6 +46,8 @@
G_asprintf(&shifted_out_name, "%s%s", Ref.file[n].name, globals->ms_suffix);
seg2_fd[n] = Rast_open_new(shifted_out_name, DCELL_TYPE);
+
+ G_free(shifted_out_name);
}
G_debug(1, "start data transfer from seg2 file to raster");
@@ -99,11 +101,12 @@
Rast_short_history(shifted_out_name, "raster", &hist);
Rast_command_history(&hist);
Rast_write_history(shifted_out_name, &hist);
+
+ G_free(shifted_out_name);
}
Rast_free_colors(&colors);
- G_free(shifted_out_name);
return TRUE;
}
More information about the grass-commit
mailing list