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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 39fe881d3cf315d8d2ea9ee4ea1e3e39a82d5cc7
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2019-05-26T14:39:11Z
Releases: 12.0
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.

Files

PathChange+/−
src/interfaces/ecpg/ecpglib/execute.c modified +14 −4