diff options
Diffstat (limited to 'src/sqlcode.l')
-rw-r--r-- | src/sqlcode.l | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sqlcode.l b/src/sqlcode.l index 59de849..c3dd679 100644 --- a/src/sqlcode.l +++ b/src/sqlcode.l @@ -375,9 +375,10 @@ void parseSqlCode( bool /*collectXRefs*/ ) { + if (s.isEmpty()) return; + sqlcodeYYlex_init_extra(&sqlcode_extra, &yyscanner); struct yyguts_t *yyg = (struct yyguts_t*)yyscanner; - if (s.isEmpty()) return; yyextra->code = &od; yyextra->inputString = s; @@ -432,6 +433,8 @@ void parseSqlCode( delete yyextra->sourceFileDef; yyextra->sourceFileDef=0; } + + sqlcodeYYlex_destroy(yyscanner); return; } |