pgsql: ecpg: Fix memory leaks in ecpg_auto_prepare()

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: ecpg: Fix memory leaks in ecpg_auto_prepare()
Дата
Msg-id E1ugB1I-0013ID-0X@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(+)


В списке pgsql-committers по дате отправления: