aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2020-11-06 22:52:15 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2020-11-06 22:52:15 -0300
commitd94d37f8c0c77cf1b9c5ae924bb6cfc12f4bc692 (patch)
tree81f75a6ddab3fe7725627624f8ad2154ab19fe3e /src/backend/executor/nodeModifyTable.c
parent6a7b55f3716fad9c40ecb960cb7b7d616d5b02fd (diff)
downloadpostgresql-d94d37f8c0c77cf1b9c5ae924bb6cfc12f4bc692.tar.gz
postgresql-d94d37f8c0c77cf1b9c5ae924bb6cfc12f4bc692.zip
Plug memory leak in index_get_partition
The list of indexes was being leaked when asked for an index that doesn't have an index partition in the table partition. Not a common case admittedly --and in most cases where it occurs, caller throws an error anyway-- but worth fixing for cleanliness and in case any third-party code is calling this function. While at it, remove use of lfirst_oid() to obtain a value we already have. Author: Justin Pryzby <pryzby@telsasoft.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/20201105203606.GF22691@telsasoft.com
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions