mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Fix a potential double-free in ecpg.
This commit is contained in:
parent
c6dc45d157
commit
af471919bc
@ -541,6 +541,7 @@ cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
|
|||||||
{
|
{
|
||||||
addlit(yytext, yyleng);
|
addlit(yytext, yyleng);
|
||||||
free(dolqstart);
|
free(dolqstart);
|
||||||
|
dolqstart = NULL;
|
||||||
BEGIN(SQL);
|
BEGIN(SQL);
|
||||||
base_yylval.str = mm_strdup(literalbuf);
|
base_yylval.str = mm_strdup(literalbuf);
|
||||||
return DOLCONST;
|
return DOLCONST;
|
||||||
|
Loading…
Reference in New Issue
Block a user