Обсуждение: pgsql: Free PQresult on error in pg_receivexlog.

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

pgsql: Free PQresult on error in pg_receivexlog.

От
Heikki Linnakangas
Дата:
Free PQresult on error in pg_receivexlog.

The leak is fairly small and rare, but a leak nevertheless.

Per Coverity report. Backpatch to 9.2, where pg_receivexlog was added.
pg_basebackup shares the code, but it always exits on error, so there is
no real leak.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/e158bbb6e95afde040debf3f573fc9b60dbcf469

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c |    1 +
1 file changed, 1 insertion(+)