[fdo-commits] r786 - in branches/3.2.x/Fdo/Unmanaged/Src: Fdo/Parse Geometry/Parse

svn_fdo at osgeo.org svn_fdo at osgeo.org
Tue Feb 20 16:53:58 EST 2007


Author: jacklee
Date: 2007-02-20 16:53:58 -0500 (Tue, 20 Feb 2007)
New Revision: 786

Modified:
   branches/3.2.x/Fdo/Unmanaged/Src/Fdo/Parse/Parse.cpp
   branches/3.2.x/Fdo/Unmanaged/Src/Geometry/Parse/ParseFgft.cpp
Log:
Free memory leak in the expression, filter and geometry parser

Modified: branches/3.2.x/Fdo/Unmanaged/Src/Fdo/Parse/Parse.cpp
===================================================================
--- branches/3.2.x/Fdo/Unmanaged/Src/Fdo/Parse/Parse.cpp	2007-02-19 23:29:33 UTC (rev 785)
+++ branches/3.2.x/Fdo/Unmanaged/Src/Fdo/Parse/Parse.cpp	2007-02-20 21:53:58 UTC (rev 786)
@@ -67,6 +67,13 @@
     FDO_SAFE_RELEASE(m_ComputedIdentifiers);
 	if (m_lex != NULL)
 		delete m_lex;
+#ifndef _WIN32
+        free(fdo_expression_yyss);
+        free(fdo_expression_yyvs);
+        free(fdo_filter_yyss);
+        free(fdo_filter_yyvs);
+#endif
+
 }
 
 FdoIDisposable* FdoParse::AddNode(FdoIDisposable* pNode)

Modified: branches/3.2.x/Fdo/Unmanaged/Src/Geometry/Parse/ParseFgft.cpp
===================================================================
--- branches/3.2.x/Fdo/Unmanaged/Src/Geometry/Parse/ParseFgft.cpp	2007-02-19 23:29:33 UTC (rev 785)
+++ branches/3.2.x/Fdo/Unmanaged/Src/Geometry/Parse/ParseFgft.cpp	2007-02-20 21:53:58 UTC (rev 786)
@@ -63,6 +63,11 @@
 	FDO_SAFE_RELEASE(m_gf);
 	// note: m_geometry is not released in destructor since it 
 	// only created once parsing is successful and it returned to caller
+#ifndef _WIN32
+        free(fdo_fgft_yyss);
+        free(fdo_fgft_yyvs);
+#endif
+
 }
 
 FdoIGeometry* FdoParseFgft::ParseFgft(FdoString* pwzFgft)



More information about the fdo-commits mailing list