ecpg: Fix memory leaks in ecpg_auto_prepare()
This routines includes three code paths that can fail, with the
allocated prepared statement name going out of scope.
Per report from Coverity. Oversight in commit a6eabec6808c, that has
played with the order of some ecpg_strdup() calls in this code path.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3151c264d460c0be09131ce90529073631d70ae8
Modified Files
--------------
src/interfaces/ecpg/ecpglib/prepare.c | 9 +++++++++
1 file changed, 9 insertions(+)