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