1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Fix a potential double-free in ecpg.

This commit is contained in:
Michael Meskes
2017-03-10 10:32:41 +01:00
parent 92f6e6829a
commit 466ee7a532

View File

@ -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;