[GRASS-SVN] r55837 - grass/branches/develbranch_6/visualization/nviz/src

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 16 22:53:18 PDT 2013


Author: hamish
Date: 2013-04-16 22:53:17 -0700 (Tue, 16 Apr 2013)
New Revision: 55837

Modified:
   grass/branches/develbranch_6/visualization/nviz/src/togl.c
Log:
avoid mem leak (#1318)

Modified: grass/branches/develbranch_6/visualization/nviz/src/togl.c
===================================================================
--- grass/branches/develbranch_6/visualization/nviz/src/togl.c	2013-04-17 05:47:09 UTC (rev 55836)
+++ grass/branches/develbranch_6/visualization/nviz/src/togl.c	2013-04-17 05:53:17 UTC (rev 55837)
@@ -3545,6 +3545,7 @@
 
     fp = fopen(filename, "w");
     if (fp == NULL) {
+	free(pixels);
         return 2;
     }
     (void) fprintf(fp, "%%!PS-Adobe-2.0 EPSF-1.2\n");



More information about the grass-commit mailing list