Fix resource leaks in backup code
Fix resource leaks in backup code

Signed-off-by: Todd Sedano <bab6eba410e3004e0d46d55962d187e2517f7509@pivotal.io>

yuanzhao/gpdb,edespino/gpdb,rvs/gpdb,jmcatamney/gpdb,edespino/gpdb,janebeckman/gpdb,lisakowen/gpdb,yuanzhao/gpdb,ashwinstar/gpdb,50wu/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,edespino/gpdb,rvs/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,50wu/gpdb,janebeckman/gpdb,Chibin/gpdb,kaknikhil/gpdb,adam8157/gpdb,jmcatamney/gpdb,janebeckman/gpdb,greenplum-db/gpdb,Chibin/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,Quikling/gpdb,janebeckman/gpdb,jmcatamney/gpdb,rvs/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,Quikling/gpdb,edespino/gpdb,xinzweb/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,Quikling/gpdb,Chibin/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,ashwinstar/gpdb,adam8157/gpdb,yuanzhao/gpdb,Quikling/gpdb,greenplum-db/gpdb,Chibin/gpdb,lisakowen/gpdb,ashwinstar/gpdb,xinzweb/gpdb,Quikling/gpdb,edespino/gpdb,50wu/gpdb,kaknikhil/gpdb,rvs/gpdb,greenplum-db/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,lisakowen/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,edespino/gpdb,lisakowen/gpdb,50wu/gpdb,Quikling/gpdb,kaknikhil/gpdb,xinzweb/gpdb,Chibin/gpdb,janebeckman/gpdb,greenplum-db/gpdb,50wu/gpdb,lisakowen/gpdb,cjcjameson/gpdb,lisakowen/gpdb,rvs/gpdb,jmcatamney/gpdb,Chibin/gpdb,adam8157/gpdb,adam8157/gpdb,Quikling/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,Chibin/gpdb,50wu/gpdb,50wu/gpdb,rvs/gpdb,cjcjameson/gpdb,jmcatamney/gpdb,lisakowen/gpdb,adam8157/gpdb,Quikling/gpdb,edespino/gpdb,xinzweb/gpdb,cjcjameson/gpdb,edespino/gpdb,janebeckman/gpdb,xinzweb/gpdb,kaknikhil/gpdb,edespino/gpdb,adam8157/gpdb,jmcatamney/gpdb,Chibin/gpdb,Chibin/gpdb,rvs/gpdb,greenplum-db/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,edespino/gpdb,lisakowen/gpdb,yuanzhao/gpdb,adam8157/gpdb,Quikling/gpdb,janebeckman/gpdb,Chibin/gpdb,Quikling/gpdb,adam8157/gpdb,xinzweb/gpdb,yuanzhao/gpdb,janebeckman/gpdb,greenplum-db/gpdb,50wu/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,greenplum-db/gpdb,rvs/gpdb,xinzweb/gpdb,rvs/gpdb,rvs/gpdb,janebeckman/gpdb,janebeckman/gpdb,xinzweb/gpdb