pg_amcheck: Fix inconsistency in memory freeing The function in charge of freeing the memory from a result created by PQescapeIdentifier() has to be PQfreemem(), to ensure that both allocation and free come from libpq, but one spot in pg_amcheck was missing that.
Oversight in b859d94c6389. Author: Ranier Vilela <ranier...@gmail.com> Reviewed-by: vignesh C <vignes...@gmail.com> Discussion: https://postgr.es/m/caeudqard_nksnycnuzippsj2tnxgrmlbxgsorh1vpof_xtp...@mail.gmail.com Discussion: https://postgr.es/m/caeudqarbtwvsbxq608grmxjjnnsq0b6r7csffnnj2hpwmus...@mail.gmail.com Backpatch-through: 14 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/816149dc6bf9dfc1fa6bdb03ef52e1453fef736a Modified Files -------------- src/bin/pg_amcheck/pg_amcheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)