[GRASS-SVN] r59357 - grass/branches/develbranch_6/lib/gis

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


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

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

Modified: grass/branches/develbranch_6/lib/gis/color_rules.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/color_rules.c	2014-03-26 12:05:49 UTC (rev 59356)
+++ grass/branches/develbranch_6/lib/gis/color_rules.c	2014-03-26 12:05:58 UTC (rev 59357)
@@ -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