Fix use of already freed memory when dumping a database's security label.
authorAndres Freund <andres@anarazel.de>
Sun, 18 Jan 2015 14:57:55 +0000 (15:57 +0100)
committerAndres Freund <andres@anarazel.de>
Sun, 18 Jan 2015 15:16:22 +0000 (16:16 +0100)
commit94bc1c58789440f248e65650c811abd4fd9a2886
tree46055a4a722674a822bd4a477ba8566dfe75a856
parent6bbf75192801c0965cec28c8d93c4ed5f2e68b20
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.
src/bin/pg_dump/pg_dump.c