Avoid dereferencing NULL file pointer after url_fclose()
Avoid dereferencing NULL file pointer after url_fclose()

The file pointer is being freed by url_fclose() so we must copy the
members of the struct we need for error reporting before invoking,
the current coding causes a NULL pointer dereference.

Reported by Coverity scanning.

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