Avoid minor leak in parallel pg_dump

Stephen Frost <sfrost@snowman.net>

Commit: 8cb90b21af3cc52c21d8a43e2d9f125113ad9f4f
Author: Stephen Frost <sfrost@snowman.net>
Date: 2014-01-24T20:12:54Z
Releases: 9.3.3
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.

Files

PathChange+/−
src/bin/pg_dump/parallel.c modified +9 −1