Обсуждение: pgsql: Fix use of already freed memory when dumping a database's securi

Поиск
Список
Период
Сортировка

pgsql: Fix use of already freed memory when dumping a database's securi

От
Andres Freund
Дата:
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.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/94bc1c58789440f248e65650c811abd4fd9a2886

Modified Files
--------------
src/bin/pg_dump/pg_dump.c |   14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)