[mapserver-commits] r9042 - branches/branch-5-4/mapserver
svn at osgeo.org
svn at osgeo.org
Wed May 27 17:51:22 EDT 2009
Author: pramsey
Date: 2009-05-27 17:51:22 -0400 (Wed, 27 May 2009)
New Revision: 9042
Modified:
branches/branch-5-4/mapserver/HISTORY.TXT
branches/branch-5-4/mapserver/mappostgis.c
Log:
Fix memory leak in SQL building (#2997)
Modified: branches/branch-5-4/mapserver/HISTORY.TXT
===================================================================
--- branches/branch-5-4/mapserver/HISTORY.TXT 2009-05-27 21:51:03 UTC (rev 9041)
+++ branches/branch-5-4/mapserver/HISTORY.TXT 2009-05-27 21:51:22 UTC (rev 9042)
@@ -14,6 +14,8 @@
Current Version:
----------------
+- Fix memory leak in SQL building (#2997)
+
- Change the dll mapping rules to support the recent MONO versions
(#3019)
Modified: branches/branch-5-4/mapserver/mappostgis.c
===================================================================
--- branches/branch-5-4/mapserver/mappostgis.c 2009-05-27 21:51:03 UTC (rev 9041)
+++ branches/branch-5-4/mapserver/mappostgis.c 2009-05-27 21:51:22 UTC (rev 9042)
@@ -1041,6 +1041,8 @@
}
strSRID = malloc(strlen(strSRIDTemplate) + strlen(f_table_name) + strlen(layerinfo->geomcolumn));
sprintf(strSRID, strSRIDTemplate, f_table_name, layerinfo->geomcolumn);
+
+ if ( f_table_name ) free(f_table_name);
}
return strSRID;
}
More information about the mapserver-commits
mailing list