pgsql: Fix leakage of memory context header in find_all_inheritors().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix leakage of memory context header in find_all_inheritors().
Date: 2017-05-16 23:33:37
Message-ID: E1dAlyD-0004zJ-A6@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix leakage of memory context header in find_all_inheritors().

Commit 827d6f977 contained the same misunderstanding of hash_create's API
as commit 090010f2e. As in 5d00b764c, remove the unnecessary layer of
memory context. (This bug is less significant than the other one, since
the extra context would be under a relatively short-lived context, but
it's still a bug.)

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ddd243584a0f353bbaba260d976cc41b251bbf21

Modified Files
--------------
src/backend/catalog/pg_inherits.c | 22 ++++++----------------
1 file changed, 6 insertions(+), 16 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-05-17 00:36:46 pgsql: Preventive maintenance in advance of pgindent run.
Previous Message Kevin Grittner 2017-05-16 22:24:42 Re: pgsql: Add a test for transition table usage in FOR EACH ROW trigger.