pgsql: Fix a tiny memory leak (one List header) in

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix a tiny memory leak (one List header) in
Date: 2006-01-19 00:27:09
Message-ID: 20060119002709.6B0639DCA18@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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?

Modified Files:
--------------
pgsql/src/backend/utils/cache:
relcache.c (r1.235 -> r1.236)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/cache/relcache.c.diff?r1=1.235&r2=1.236)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-01-19 00:27:28 pgsql: Fix a tiny memory leak (one List header) in
Previous Message Bruce Momjian 2006-01-18 22:26:01 pgsql: Clarify use of btree indexes for ILIKE and ~*.