]> 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:04:10 +0000 (16:04 +0100)
commit525b84c576e119de7f2b0d00e3a99d559771aa7b
tree29b9ea808e7f3404de08f57b73d252db24b91724
parentff44fba46c09c37dd9e60da1cb0b3a9339eb085f
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