pgsql: Fix use of already freed memory when dumping a database's securi - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Fix use of already freed memory when dumping a database's securi
Date
Msg-id E1YCre7-0007Ju-He@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/509da5929ae0f5a5a51e5f86f4c9ae659c189b1a

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


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Fix use of already freed memory when dumping a database's securi
Next
From: Andres Freund
Date:
Subject: pgsql: Fix use of already freed memory when dumping a database's securi