OSDN Git Service

Properly free all elements in a list
author褚华兴 <15381158111@163.com>
Wed, 19 Jan 2022 02:37:57 +0000 (11:37 +0900)
committerKyotaro Horiguchi <horikyota.ntt@gmail.com>
Wed, 19 Jan 2022 02:37:57 +0000 (11:37 +0900)
commite6a90040835ccfb32479f2c42f5baecaa72d9ec0
treee7236229b118c0d47bb6f821fb24a4fd907d3760
parente771aa671adc23577b8d9ef1eb797bad03e3b307
Properly free all elements in a list

HintStateDelete tried to free the elements of hstate->all_hints[] but
actually it only freed part of them.  Correct the code as it intended.

Some other palloced blocks are being hanged under the struct but we
don't bother trying to be perfect at cleaning up the whole struct
since it will be freed up at query end.
pg_hint_plan.c