Fix a tiny memory leak (one List header) in RelationCacheInvalidate().

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

Commit: b0be247e38bdeb3911e70f5844bcbb48a1055917
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-01-19T00:27:08Z
Releases: 8.2.0
Fix a tiny memory leak (one List header) in RelationCacheInvalidate().
This is utterly insignificant in normal operation, but it becomes a
problem during cache inval stress testing.  The original coding in fact
had no leak --- the 8.0 List rewrite created the issue.  I wonder whether
list_concat should pfree the discarded header?

Files

PathChange+/−
src/backend/utils/cache/relcache.c modified +7 −3