]> granicus.if.org Git - postgresql/commit
To suppress memory leakage in long-lived Lists, lremove() should pfree
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 17 Dec 2002 01:18:35 +0000 (01:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 17 Dec 2002 01:18:35 +0000 (01:18 +0000)
commite932a724a4a372c7db21ce7bf40250576b085041
tree02e45ca5656b4838336b1b2b6e9e31cea2f721dc
parent9f76d0d926ffe72e32248b7c79f585c47e643981
To suppress memory leakage in long-lived Lists, lremove() should pfree
the cons cell it's deleting from the list.  Do this, and fix a few callers
that were bogusly assuming it wouldn't free the cons cell.
src/backend/nodes/list.c
src/backend/optimizer/path/pathkeys.c
src/backend/optimizer/plan/initsplan.c
src/backend/parser/analyze.c
src/backend/rewrite/rewriteHandler.c
src/backend/utils/adt/selfuncs.c