mirror of
https://github.com/postgres/postgres.git
synced 2025-05-08 07:21:33 +03:00
Fix a potential double-free in ecpg.
This commit is contained in:
parent
d8ec6b9c8c
commit
d0fef06544
@ -566,6 +566,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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user