Avoid minor leak in parallel pg_dump
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.

techdragon/Postgres-XL,50wu/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,Postgres-XL/Postgres-XL,lisakowen/gpdb,lisakowen/gpdb,50wu/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,50wu/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,yazun/postgres-xl,xinzweb/gpdb,ovr/postgres-xl,zeroae/postgres-xl,greenplum-db/gpdb,jmcatamney/gpdb,Postgres-XL/Postgres-XL,ashwinstar/gpdb,greenplum-db/gpdb,xinzweb/gpdb,greenplum-db/gpdb,50wu/gpdb,zeroae/postgres-xl,adam8157/gpdb,pavanvd/postgres-xl,50wu/gpdb,xinzweb/gpdb,techdragon/Postgres-XL,greenplum-db/gpdb,greenplum-db/gpdb,50wu/gpdb,greenplum-db/gpdb,oberstet/postgres-xl,Postgres-XL/Postgres-XL,adam8157/gpdb,yazun/postgres-xl,jmcatamney/gpdb,xinzweb/gpdb,50wu/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,jmcatamney/gpdb,xinzweb/gpdb,adam8157/gpdb,pavanvd/postgres-xl,oberstet/postgres-xl,adam8157/gpdb,yazun/postgres-xl,lisakowen/gpdb,oberstet/postgres-xl,xinzweb/gpdb,pavanvd/postgres-xl,xinzweb/gpdb,adam8157/gpdb,lisakowen/gpdb,jmcatamney/gpdb,lisakowen/gpdb,adam8157/gpdb,ashwinstar/gpdb,lisakowen/gpdb,xinzweb/gpdb,ashwinstar/gpdb,oberstet/postgres-xl,lisakowen/gpdb,lisakowen/gpdb,ovr/postgres-xl,yazun/postgres-xl,50wu/gpdb,adam8157/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL,Postgres-XL/Postgres-XL,ovr/postgres-xl,adam8157/gpdb,jmcatamney/gpdb,oberstet/postgres-xl,techdragon/Postgres-XL,zeroae/postgres-xl,pavanvd/postgres-xl,zeroae/postgres-xl,Postgres-XL/Postgres-XL,zeroae/postgres-xl,yazun/postgres-xl,ovr/postgres-xl,ovr/postgres-xl,ashwinstar/gpdb,techdragon/Postgres-XL