8000 Fix a potential double-free in ecpg. · thatguystone/postgres@466ee7a · GitHub
[go: up one dir, main page]

Skip to content

Commit 466ee7a

Browse files
author
Michael Meskes
committed
Fix a potential double-free in ecpg.
1 parent 92f6e68 commit 466ee7a

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

0 commit comments

Comments
 (0)
0