Fix use of already freed memory when dumping a database's security label.

Andres Freund <andres@anarazel.de>

Commit: 509da5929ae0f5a5a51e5f86f4c9ae659c189b1a
Author: Andres Freund <andres@anarazel.de>
Date: 2015-01-18T15:16:29Z
Releases: 9.3.6
Fix use of already freed memory when dumping a database's security label.

pg_dump.c:dumDatabase() called ArchiveEntry() with the results of a a
query that was PQclear()ed a couple lines earlier.

Backpatch to 9.2 where security labels for shared objects where
introduced.

Files

PathChange+/−
src/bin/pg_dump/pg_dump.c modified +9 −5