Don't leak malloc'd error string in libpqrcv_check_conninfo(). We leaked the error report from PQconninfoParse, when there was one. It seems unlikely that real usage patterns would repeat the failure often enough to create serious bloat, but let's back-patch anyway to keep the code similar in all branches.
Found via valgrind testing. Back-patch to v10 where this code was added. Discussion: https://postgr.es/m/[email protected] Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/12354839e874c1f6ebc5e1e5ebc1c6b5519eeea0 Modified Files -------------- src/backend/replication/libpqwalreceiver/libpqwalreceiver.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
