[mapserver-commits] r7868 - branches/branch-5-2/mapserver

svn at osgeo.org svn at osgeo.org
Tue Aug 19 23:45:26 EDT 2008


Author: sdlime
Date: 2008-08-19 23:45:25 -0400 (Tue, 19 Aug 2008)
New Revision: 7868

Modified:
   branches/branch-5-2/mapserver/maplexer.l
Log:
Fixed a memory leak associated with not deleting the lexer buffer before parsing certain types of strings. (bug 2729)

Modified: branches/branch-5-2/mapserver/maplexer.l
===================================================================
--- branches/branch-5-2/mapserver/maplexer.l	2008-08-19 14:04:18 UTC (rev 7867)
+++ branches/branch-5-2/mapserver/maplexer.l	2008-08-20 03:45:25 UTC (rev 7868)
@@ -65,6 +65,7 @@
          break;
        case(MS_TOKENIZE_STRING):
          BEGIN(INITIAL);
+         msyy_delete_buffer(YY_CURRENT_BUFFER);
          msyysource=MS_STRING_TOKENS;
          msyystate=MS_TOKENIZE_DEFAULT;
          msyy_scan_string(msyystring);
@@ -75,6 +76,7 @@
          break;
        case(MS_TOKENIZE_URL_VARIABLE):
          BEGIN(URL_VARIABLE);
+         msyy_delete_buffer(YY_CURRENT_BUFFER);
          msyy_scan_string(msyystring);
          msyysource=MS_URL_TOKENS;
          msyystate=MS_TOKENIZE_DEFAULT;
@@ -83,6 +85,7 @@
          break;
        case(MS_TOKENIZE_URL_STRING):
          BEGIN(URL_STRING);
+         msyy_delete_buffer(YY_CURRENT_BUFFER);
          msyysource=MS_URL_TOKENS;
          msyystate=MS_TOKENIZE_DEFAULT;
          msyy_scan_string(msyystring);



More information about the mapserver-commits mailing list