Repair memory leak introduced by recent change to make SPI return a tupdesc even with zero tuples returned: some plpgsql routines assumed they didn't need to do SPI_freetuptable() after retrieving no tuples.
Repair memory leak introduced by recent change to make SPI return a
tupdesc even with zero tuples returned: some plpgsql routines assumed
they didn't need to do SPI_freetuptable() after retrieving no tuples.

xuegang/gpdb,lisakowen/gpdb,zaksoup/gpdb,tpostgres-projects/tPostgres,adam8157/gpdb,ashwinstar/gpdb,50wu/gpdb,cjcjameson/gpdb,atris/gpdb,lintzc/gpdb,rvs/gpdb,tangp3/gpdb,rvs/gpdb,zaksoup/gpdb,yuanzhao/gpdb,edespino/gpdb,xinzweb/gpdb,atris/gpdb,adam8157/gpdb,ovr/postgres-xl,ovr/postgres-xl,adam8157/gpdb,yuanzhao/gpdb,xinzweb/gpdb,CraigHarris/gpdb,50wu/gpdb,randomtask1155/gpdb,lintzc/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,chrishajas/gpdb,pavanvd/postgres-xl,Chibin/gpdb,Postgres-XL/Postgres-XL,snaga/postgres-xl,pavanvd/postgres-xl,janebeckman/gpdb,tpostgres-projects/tPostgres,lintzc/gpdb,royc1/gpdb,techdragon/Postgres-XL,postmind-net/postgres-xl,lpetrov-pivotal/gpdb,xuegang/gpdb,rvs/gpdb,lpetrov-pivotal/gpdb,tangp3/gpdb,atris/gpdb,xinzweb/gpdb,ahachete/gpdb,lpetrov-pivotal/gpdb,kmjungersen/PostgresXL,cjcjameson/gpdb,tangp3/gpdb,edespino/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,ovr/postgres-xl,50wu/gpdb,foyzur/gpdb,foyzur/gpdb,Quikling/gpdb,royc1/gpdb,atris/gpdb,rvs/gpdb,ovr/postgres-xl,yazun/postgres-xl,royc1/gpdb,Quikling/gpdb,lisakowen/gpdb,lisakowen/gpdb,edespino/gpdb,randomtask1155/gpdb,ashwinstar/gpdb,adam8157/gpdb,janebeckman/gpdb,CraigHarris/gpdb,royc1/gpdb,randomtask1155/gpdb,edespino/gpdb,chrishajas/gpdb,Quikling/gpdb,randomtask1155/gpdb,arcivanov/postgres-xl,lisakowen/gpdb,greenplum-db/gpdb,lintzc/gpdb,lintzc/gpdb,lisakowen/gpdb,ahachete/gpdb,CraigHarris/gpdb,kmjungersen/PostgresXL,postmind-net/postgres-xl,yuanzhao/gpdb,royc1/gpdb,xuegang/gpdb,snaga/postgres-xl,0x0FFF/gpdb,lisakowen/gpdb,rvs/gpdb,janebeckman/gpdb,techdragon/Postgres-XL,rubikloud/gpdb,arcivanov/postgres-xl,foyzur/gpdb,lpetrov-pivotal/gpdb,xuegang/gpdb,janebeckman/gpdb,50wu/gpdb,rvs/gpdb,kaknikhil/gpdb,rvs/gpdb,Quikling/gpdb,lintzc/gpdb,ahachete/gpdb,arcivanov/postgres-xl,jmcatamney/gpdb,atris/gpdb,xinzweb/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,Postgres-XL/Postgres-XL,edespino/gpdb,foyzur/gpdb,techdragon/Postgres-XL,ashwinstar/gpdb,pavanvd/postgres-xl,ahachete/gpdb,lisakowen/gpdb,xinzweb/gpdb,foyzur/gpdb,jmcatamney/gpdb,Quikling/gpdb,zaksoup/gpdb,tangp3/gpdb,zeroae/postgres-xl,royc1/gpdb,xinzweb/gpdb,jmcatamney/gpdb,kaknikhil/gpdb,Postgres-XL/Postgres-XL,ahachete/gpdb,janebeckman/gpdb,greenplum-db/gpdb,Quikling/gpdb,snaga/postgres-xl,foyzur/gpdb,yazun/postgres-xl,kaknikhil/gpdb,janebeckman/gpdb,greenplum-db/gpdb,zeroae/postgres-xl,zeroae/postgres-xl,cjcjameson/gpdb,zaksoup/gpdb,cjcjameson/gpdb,foyzur/gpdb,ahachete/gpdb,kaknikhil/gpdb,oberstet/postgres-xl,lpetrov-pivotal/gpdb,lintzc/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,adam8157/gpdb,arcivanov/postgres-xl,50wu/gpdb,pavanvd/postgres-xl,postmind-net/postgres-xl,CraigHarris/gpdb,postmind-net/postgres-xl,CraigHarris/gpdb,Chibin/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,xuegang/gpdb,kmjungersen/PostgresXL,greenplum-db/gpdb,adam8157/gpdb,Chibin/gpdb,oberstet/postgres-xl,lpetrov-pivotal/gpdb,snaga/postgres-xl,lintzc/gpdb,oberstet/postgres-xl,Quikling/gpdb,jmcatamney/gpdb,lpetrov-pivotal/gpdb,adam8157/gpdb,yazun/postgres-xl,randomtask1155/gpdb,edespino/gpdb,rubikloud/gpdb,kmjungersen/PostgresXL,cjcjameson/gpdb,randomtask1155/gpdb,chrishajas/gpdb,ashwinstar/gpdb,rvs/gpdb,rubikloud/gpdb,cjcjameson/gpdb,Quikling/gpdb,rvs/gpdb,rvs/gpdb,lisakowen/gpdb,Postgres-XL/Postgres-XL,janebeckman/gpdb,cjcjameson/gpdb,royc1/gpdb,0x0FFF/gpdb,CraigHarris/gpdb,ahachete/gpdb,ovr/postgres-xl,greenplum-db/gpdb,0x0FFF/gpdb,tpostgres-projects/tPostgres,tpostgres-projects/tPostgres,edespino/gpdb,chrishajas/gpdb,pavanvd/postgres-xl,foyzur/gpdb,tpostgres-projects/tPostgres,Chibin/gpdb,Quikling/gpdb,zaksoup/gpdb,edespino/gpdb,ahachete/gpdb,Chibin/gpdb,rubikloud/gpdb,zaksoup/gpdb,jmcatamney/gpdb,oberstet/postgres-xl,tangp3/gpdb,50wu/gpdb,greenplum-db/gpdb,arcivanov/postgres-xl,xuegang/gpdb,zeroae/postgres-xl,randomtask1155/gpdb,rubikloud/gpdb,arcivanov/postgres-xl,chrishajas/gpdb,adam8157/gpdb,yazun/postgres-xl,techdragon/Postgres-XL,randomtask1155/gpdb,jmcatamney/gpdb,edespino/gpdb,0x0FFF/gpdb,Postgres-XL/Postgres-XL,atris/gpdb,zeroae/postgres-xl,0x0FFF/gpdb,xinzweb/gpdb,chrishajas/gpdb,xuegang/gpdb,techdragon/Postgres-XL,zaksoup/gpdb,50wu/gpdb,rubikloud/gpdb,0x0FFF/gpdb,greenplum-db/gpdb,xuegang/gpdb,snaga/postgres-xl,royc1/gpdb,yuanzhao/gpdb,lintzc/gpdb,lpetrov-pivotal/gpdb,yuanzhao/gpdb,rubikloud/gpdb,rubikloud/gpdb,50wu/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,yuanzhao/gpdb,ashwinstar/gpdb,janebeckman/gpdb,xuegang/gpdb,CraigHarris/gpdb,tangp3/gpdb,yazun/postgres-xl,janebeckman/gpdb,ashwinstar/gpdb,tangp3/gpdb,postmind-net/postgres-xl,yuanzhao/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,atris/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,atris/gpdb,xinzweb/gpdb,jmcatamney/gpdb,edespino/gpdb,CraigHarris/gpdb,Chibin/gpdb,kmjungersen/PostgresXL,0x0FFF/gpdb,0x0FFF/gpdb,Quikling/gpdb,Chibin/gpdb,janebeckman/gpdb,chrishajas/gpdb,kaknikhil/gpdb,Chibin/gpdb,zaksoup/gpdb,tangp3/gpdb,Chibin/gpdb,chrishajas/gpdb,oberstet/postgres-xl,Chibin/gpdb