Обсуждение: pgsql: Avoid minor leak in parallel pg_dump

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

pgsql: Avoid minor leak in parallel pg_dump

От
Stephen Frost
Дата:
Avoid minor leak in parallel pg_dump

During parallel pg_dump, a worker process closing the connection caused
a minor memory leak (particularly minor as we are likely about to exit
anyway).  Instead, free the memory in this case prior to returning NULL
to indicate connection closed.

Spotting by the Coverity scanner.

Back patch to 9.3 where this was introduced.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/8cb90b21af3cc52c21d8a43e2d9f125113ad9f4f

Modified Files
--------------
src/bin/pg_dump/parallel.c |   10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)