pgsql-server/src/backend nodes/list.c optimize ...
pgsql-server/src/backend nodes/list.c optimize ...
От:
tgl@postgresql.org (Tom Lane)
Дата:
CVSROOT: /cvsroot Module name: pgsql-server Changes by: tgl@postgresql.org 02/12/16 20:18:38 Modified files: 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 Log message: 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.