Attached is a patch which fixes a memory leak in tuplestore_end().Barring any objections, I'll apply this to HEAD and back branchestomorrow.
-Neil