From: Michael Meskes Date: Fri, 10 Mar 2017 09:32:41 +0000 (+0100) Subject: Fix a potential double-free in ecpg. X-Git-Tag: REL9_6_3~84 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d0fef065446e900aaca1382b641d9449396c41f4;p=thirdparty%2Fpostgresql.git Fix a potential double-free in ecpg. --- diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l index 283343d8228..3601544da20 100644 --- a/src/interfaces/ecpg/preproc/pgc.l +++ b/src/interfaces/ecpg/preproc/pgc.l @@ -566,6 +566,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;