Commit 639ce065 authored by Olivier Bertrand's avatar Olivier Bertrand

- Release storage allocated by flex

modified:
  storage/connect/fmdlex.c
parent b8d6f973
......@@ -20,11 +20,9 @@
*/
#define FLEX_SCANNER
#if WIN32
#define __STDC__ 1
#endif
#include <stdio.h>
......@@ -520,10 +518,7 @@ YY_DECL
if (pp->InFmt) {*pp->InFmt = '\0'; pp->InFmt[pp->Outsize -1] = '\0'; }
if (pp->OutFmt) {*pp->OutFmt = '\0'; pp->OutFmt[pp->Outsize -1] = '\0'; }
pp->Curp = pp->Format;
if (!yy_init) { /* Restart that stupid Flex otherwise parsing last input */
yy_init_buffer( yy_current_buffer, yyin );
yy_load_buffer_state();
} // endif yy_init
yy_init = 1; /* This is a new input */
if ( yy_init )
......@@ -1520,6 +1515,10 @@ void Quotout(char *text)
int yywrap(void)
{
/* Avoid memory leak */
if (yy_current_buffer)
yy_delete_buffer(yy_current_buffer);
return 1;
} /* end of yywrap */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment