From: Michael Meskes Date: Fri, 10 Mar 2017 09:32:41 +0000 (+0100) Subject: Fix a potential double-free in ecpg. X-Git-Tag: REL_10_BETA1~694 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1ca82d0a226f22438a1cf4ba0ed3460e6db692b;p=postgresql Fix a potential double-free in ecpg. --- diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l index 6b58dd5afe..7b2bfdccc9 100644 --- a/src/interfaces/ecpg/preproc/pgc.l +++ b/src/interfaces/ecpg/preproc/pgc.l @@ -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;