]> granicus.if.org Git - postgresql/commit
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:36 +0000 (16:16 +0100)
commit821386ab7ef6dc0c711475ce19c1a0addd07c3b4
treed115fec3003d5b5880c41d74f23c76337e1f47de
parentc8ef5b1aceb0fec2b928778e83371b13ba7d70e1
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