Fix a tiny memory leak (one List header) in RelationCacheInvalidate().
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 Jan 2006 00:27:08 +0000 (00:27 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 Jan 2006 00:27:08 +0000 (00:27 +0000)
commitb0be247e38bdeb3911e70f5844bcbb48a1055917
tree573a238af4cb8aa6c41b55359e98525eba75ede5
parent7259cc1e7eaa3e21a013902b0a70b9eb15c6b29f
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?
src/backend/utils/cache/relcache.c