Protect against hypothetical memory leaks in RelationGetPartitionKey

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: be2343221fb74bde6b7445feeef32f7ea5cf2618
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2017-12-27T21:06:14Z
Releases: 11.0
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

Files

PathChange+/−
src/backend/utils/cache/relcache.c modified +29 −24
src/include/access/hash.h modified +1 −1

Discussion