From 731afc91f0988604535db7838731cc1c355b160e Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Fri, 10 Mar 2017 10:32:41 +0100 Subject: [PATCH] Fix a potential double-free in ecpg. --- src/interfaces/ecpg/preproc/pgc.l | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l index a0a2d4a003..33822c9c56 100644 --- a/src/interfaces/ecpg/preproc/pgc.l +++ b/src/interfaces/ecpg/preproc/pgc.l @@ -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; -- 2.40.0