Fix a potential double-free in ecpg.

This commit is contained in:
Michael Meskes 2017-03-10 10:32:41 +01:00
parent c6dc45d157
commit af471919bc

View File

@ -541,6 +541,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;