Clean up handling of tuple descriptors so that result-tuple descriptors

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 0d54d6ac44444c05f7c0f5058d3d3f32cc188b48
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2001-01-29T00:39:20Z
Releases: 7.1.1
Clean up handling of tuple descriptors so that result-tuple descriptors
allocated by plan nodes are not leaked at end of query.  This doesn't
really matter for normal queries, but it sure does for queries invoked
repetitively inside SQL functions.  Clean up some other grotty code
associated with tupdescs, and fix a few other memory leaks exposed by
tests with simple SQL functions.

Files