summaryrefslogtreecommitdiff
path: root/storage/innobase/pars/lexyy.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/pars/lexyy.c')
-rw-r--r--storage/innobase/pars/lexyy.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/storage/innobase/pars/lexyy.c b/storage/innobase/pars/lexyy.c
index 37d892e51e3..815395ea316 100644
--- a/storage/innobase/pars/lexyy.c
+++ b/storage/innobase/pars/lexyy.c
@@ -2778,3 +2778,16 @@ static void yyfree (void * ptr )
+
+/**********************************************************************
+Release any resources used by the lexer. */
+UNIV_INTERN
+void
+pars_lexer_close(void)
+/*==================*/
+{
+ yylex_destroy();
+ free(stringbuf);
+ stringbuf = NULL;
+ stringbuf_len_alloc = stringbuf_len = 0;
+}