Fix more memory leaks in failure path in buildACLCommands.
Fix more memory leaks in failure path in buildACLCommands.

We already had one go at this issue in commit d73b7f973db5ec7e, but we
failed to notice that buildACLCommands also leaked several PQExpBuffers
along with a simply malloc'd string.  This time let's try to make the
fix a bit more future-proof by eliminating the separate exit path.

It's still not exactly critical because pg_dump will curl up and die on
failure; but since the amount of the potential leak is now several KB,
it seems worth back-patching as far as 9.2 where the previous fix landed.

Per Coverity, which evidently is smarter than clang's static analyzer.

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