Обсуждение: pgsql: Fix more thinkos in new ECPG "PREPARE AS" code.

Поиск
Список
Период
Сортировка

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

От
Tom Lane
Дата:
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(-)