Dear pgsql-hackers,
While reviewing the code of pg_amcheck, I discovered a potential issue
that could lead to a memory leak. Specifically, there is a
missing PQclear(result) call before the database connection is
disconnected, which could leave the query result unfreed.
To resolve this,
PostgreSQL version:PostgreSQL 14.0 on x86_64-pc-linux-gnu, compiled by gcc
(GCC) 4.8.5 20150623 (Red Hat 4.8.5-39), 64-bit
Platform information:Linux version 3.10.0-1127.el7.x86_64
(mockbu...@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat
4.8.5-39) (GCC) ) #1 SMP Tue Mar 31 23:36:51