mirror of
https://github.com/postgres/postgres.git
synced 2026-06-13 18:50:17 -04:00
Fix a potential double-free in ecpg.
This commit is contained in:
parent
92f6e6829a
commit
466ee7a532
1 changed files with 1 additions and 0 deletions
|
|
@ -566,6 +566,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