pgsql: Fix more thinkos in new ECPG "PREPARE AS" code.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix more thinkos in new ECPG "PREPARE AS" code.
Date: 2019-05-26 14:39:19
Message-ID: E1hUuIx-0002RK-Tx@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix more thinkos in new ECPG "PREPARE AS" code.

ecpg_build_params() failed to check for ecpg_alloc failure in one
newly-added code path, and leaked a temporary string in another path.
Errors in commit a1dc6ab46, spotted by Coverity.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/39fe881d3cf315d8d2ea9ee4ea1e3e39a82d5cc7

Modified Files
--------------
src/interfaces/ecpg/ecpglib/execute.c | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2019-05-27 16:05:38 Re: pgsql: tableam: introduce table AM infrastructure.
Previous Message Tom Lane 2019-05-26 14:06:54 pgsql: Fix thinko in new ECPG "PREPARE AS" code.