[GRASS-SVN] r59356 - grass/branches/releasebranch_6_4/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 26 05:05:49 PDT 2014


Author: neteler
Date: 2014-03-26 05:05:49 -0700 (Wed, 26 Mar 2014)
New Revision: 59356

Modified:
   grass/branches/releasebranch_6_4/lib/gis/color_rules.c
Log:
libgis: fix memory leak (backport of r57540, bug #2063)

Modified: grass/branches/releasebranch_6_4/lib/gis/color_rules.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/gis/color_rules.c	2014-03-26 11:41:40 UTC (rev 59355)
+++ grass/branches/releasebranch_6_4/lib/gis/color_rules.c	2014-03-26 12:05:49 UTC (rev 59356)
@@ -212,6 +212,8 @@
 				  &hi->val, hi->r, hi->g, hi->b, colors);
     }
 
+    G_free(rule);
+
     /* null value and default color set up, if rules are set up by user */
     if (null.set)
 	G_set_null_value_color(null.r, null.g, null.b, colors);



More information about the grass-commit mailing list