Skip to content

Commit d1ca82d

Browse files
author
Michael Meskes
committed
Fix a potential double-free in ecpg.
1 parent 9c2635e commit d1ca82d

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
@@ -565,6 +565,7 @@ cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})((\/\*[^*/]*\*+
565565
{
566566
addlit(yytext, yyleng);
567567
free(dolqstart);
568+
dolqstart = NULL;
568569
BEGIN(SQL);
569570
base_yylval.str = mm_strdup(literalbuf);
570571
return DOLCONST;

0 commit comments

Comments
 (0)