pgsql: Protect against hypothetical memory leaks in RelationGetPartitio

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Protect against hypothetical memory leaks in RelationGetPartitio
Date: 2017-12-27 21:30:29
Message-ID: E1eUJHR-0003yb-VD@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Protect against hypothetical memory leaks in RelationGetPartitionKey

Also, fix a comment that commit 8a0596cb656e made obsolete.

Reported-by: Robert Haas
Discussion: http://postgr.es/m/CA+TgmoYbpuUUUp2GhYNwWm0qkah39spiU7uOiNXLz20ASfKYoA@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/utils/cache/relcache.c | 53 +++++++++++++++++++++-----------------
src/include/access/hash.h | 2 +-
2 files changed, 30 insertions(+), 25 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2017-12-27 21:31:12 Re: pgsql: Get rid of copy_partition_key
Previous Message Robert Haas 2017-12-27 19:03:33 pgsql: Remove incorrect apostrophe.