pgsql: Fix more thinkos in new ECPG "PREPARE AS" code. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix more thinkos in new ECPG "PREPARE AS" code.
Date
Msg-id E1hUuIx-0002RK-Tx@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix thinko in new ECPG "PREPARE AS" code.
Next
From: Andres Freund
Date:
Subject: Re: pgsql: tableam: introduce table AM infrastructure.