mirror of
https://github.com/postgres/postgres.git
synced 2026-04-21 06:08:26 -04:00
Fix a potential double-free in ecpg.
This commit is contained in:
parent
e573bc3f9a
commit
f6b9065993
1 changed files with 1 additions and 0 deletions
|
|
@ -559,6 +559,7 @@ cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
|
|||
{
|
||||
addlit(yytext, yyleng);
|
||||
free(dolqstart);
|
||||
dolqstart = NULL;
|
||||
BEGIN(SQL);
|
||||
base_yylval.str = mm_strdup(literalbuf);
|
||||
return DOLCONST;
|
||||
|
|
|
|||
Loading…
Reference in a new issue