pgsql: Fix minor memory leaks in pg_dump.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix minor memory leaks in pg_dump.
Date: 2025-02-12 21:07:50
Message-ID: E1tiJxW-006nUB-9L@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix minor memory leaks in pg_dump.

Coverity reported the two oversights in getPublicationTables.
Valgrind found the one in determineNotNullFlags.

The mistakes in getPublicationTables seem too minor to be worth
back-patching. determineNotNullFlags could be run enough times
to matter, but that code is new in v18. So, no back-patch.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fcd77a6873018c06a34761b7be0c0d1fd847fdd5

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2025-02-12 21:46:40 pgsql: Remove unneeded volatile qualifier in fmgr.c.
Previous Message Andres Freund 2025-02-12 14:40:40 pgsql: ci: Test NetBSD and OpenBSD