Skip to content

Commit af47191

Browse files
author
Michael Meskes
committed
Fix a potential double-free in ecpg.
1 parent c6dc45d commit af47191

File tree

1 file changed

+1
-0
lines changed
  • src/interfaces/ecpg/preproc

1 file changed

+1
-0
lines changed

src/interfaces/ecpg/preproc/pgc.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
541541
{
542542
addlit(yytext, yyleng);
543543
free(dolqstart);
544+
dolqstart = NULL;
544545
BEGIN(SQL);
545546
base_yylval.str = mm_strdup(literalbuf);
546547
return DOLCONST;

0 commit comments

Comments
 (0)