pgsql: Plug memory leak in index_get_partition

2020-11-06 Thread Alvaro Herrera
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

pgsql: Plug memory leak in index_get_partition

2020-11-06 Thread Alvaro Herrera
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

pgsql: Plug memory leak in index_get_partition

2020-11-06 Thread Alvaro Herrera
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