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

Started by Tom Laneabout 9 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers