Fix incorrect cleanup of tsquery in ts_rewrite(). Per bug #4933 by  Aaron Marcuse-Kubitza <aaronmk@blackducksoftware.com>
Fix incorrect cleanup of tsquery in ts_rewrite(). Per bug #4933 by
 Aaron Marcuse-Kubitza <aaronmk@blackducksoftware.com>

cjcjameson/gpdb,Chibin/gpdb,cjcjameson/gpdb,rvs/gpdb,kaknikhil/gpdb,xinzweb/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,0x0FFF/gpdb,Chibin/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,adam8157/gpdb,50wu/gpdb,royc1/gpdb,chrishajas/gpdb,chrishajas/gpdb,xinzweb/gpdb,rvs/gpdb,lisakowen/gpdb,xuegang/gpdb,Chibin/gpdb,cjcjameson/gpdb,zaksoup/gpdb,ahachete/gpdb,50wu/gpdb,lisakowen/gpdb,zaksoup/gpdb,Chibin/gpdb,greenplum-db/gpdb,CraigHarris/gpdb,adam8157/gpdb,edespino/gpdb,Quikling/gpdb,Quikling/gpdb,lintzc/gpdb,ahachete/gpdb,royc1/gpdb,0x0FFF/gpdb,royc1/gpdb,jmcatamney/gpdb,chrishajas/gpdb,yuanzhao/gpdb,ashwinstar/gpdb,edespino/gpdb,lintzc/gpdb,adam8157/gpdb,Chibin/gpdb,jmcatamney/gpdb,0x0FFF/gpdb,edespino/gpdb,Quikling/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,lisakowen/gpdb,Quikling/gpdb,royc1/gpdb,lintzc/gpdb,rvs/gpdb,janebeckman/gpdb,CraigHarris/gpdb,xuegang/gpdb,ahachete/gpdb,lintzc/gpdb,lintzc/gpdb,xinzweb/gpdb,royc1/gpdb,0x0FFF/gpdb,yuanzhao/gpdb,xuegang/gpdb,ahachete/gpdb,jmcatamney/gpdb,xinzweb/gpdb,Chibin/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,ahachete/gpdb,janebeckman/gpdb,kaknikhil/gpdb,xinzweb/gpdb,royc1/gpdb,50wu/gpdb,cjcjameson/gpdb,Quikling/gpdb,xuegang/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,rvs/gpdb,lintzc/gpdb,Quikling/gpdb,adam8157/gpdb,CraigHarris/gpdb,lisakowen/gpdb,Chibin/gpdb,rvs/gpdb,xinzweb/gpdb,jmcatamney/gpdb,lintzc/gpdb,zaksoup/gpdb,zaksoup/gpdb,royc1/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,chrishajas/gpdb,Quikling/gpdb,xuegang/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,lisakowen/gpdb,edespino/gpdb,adam8157/gpdb,jmcatamney/gpdb,ahachete/gpdb,0x0FFF/gpdb,50wu/gpdb,50wu/gpdb,xuegang/gpdb,CraigHarris/gpdb,Quikling/gpdb,kaknikhil/gpdb,lisakowen/gpdb,ashwinstar/gpdb,rvs/gpdb,50wu/gpdb,CraigHarris/gpdb,xinzweb/gpdb,rvs/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,zaksoup/gpdb,janebeckman/gpdb,greenplum-db/gpdb,CraigHarris/gpdb,edespino/gpdb,lisakowen/gpdb,lintzc/gpdb,xinzweb/gpdb,lisakowen/gpdb,xuegang/gpdb,ashwinstar/gpdb,Chibin/gpdb,janebeckman/gpdb,janebeckman/gpdb,edespino/gpdb,ahachete/gpdb,yuanzhao/gpdb,janebeckman/gpdb,cjcjameson/gpdb,edespino/gpdb,janebeckman/gpdb,janebeckman/gpdb,chrishajas/gpdb,rvs/gpdb,chrishajas/gpdb,Chibin/gpdb,CraigHarris/gpdb,jmcatamney/gpdb,Quikling/gpdb,xuegang/gpdb,greenplum-db/gpdb,50wu/gpdb,adam8157/gpdb,jmcatamney/gpdb,edespino/gpdb,edespino/gpdb,yuanzhao/gpdb,janebeckman/gpdb,kaknikhil/gpdb,adam8157/gpdb,50wu/gpdb,Chibin/gpdb,zaksoup/gpdb,ahachete/gpdb,yuanzhao/gpdb,zaksoup/gpdb,edespino/gpdb,chrishajas/gpdb,zaksoup/gpdb,royc1/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,adam8157/gpdb,chrishajas/gpdb,0x0FFF/gpdb,rvs/gpdb,rvs/gpdb,janebeckman/gpdb,lintzc/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,0x0FFF/gpdb,jmcatamney/gpdb,kaknikhil/gpdb,CraigHarris/gpdb,ashwinstar/gpdb,Quikling/gpdb,greenplum-db/gpdb,xuegang/gpdb,yuanzhao/gpdb