mirror of
https://github.com/postgres/postgres.git
synced 2025-06-20 15:22:23 +03:00
Fix a potential double-free in ecpg.
This commit is contained in:
@ -565,6 +565,7 @@ cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})((\/\*[^*/]*\*+
|
|||||||
{
|
{
|
||||||
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;
|
||||||
|
Reference in New Issue
Block a user