postgresql/src/bin/pg_dump
Stephen Frost 09f8421819 pg_dump: Don't leak memory in buildDefaultACLCommands()
buildDefaultACLCommands() didn't destroy the string buffer created in
certain cases, leading to a memory leak.  Fix by destroying the buffer
before returning from the function.

Spotted by Coverity.

Author: Michael Paquier

Back-patch to 9.6 where buildDefaultACLCommands() was added.
2017-05-06 22:58:12 -04:00
..
po Translation updates 2016-08-08 11:08:00 -04:00
t Change the way pg_dump retrieves partitioning info 2017-05-04 22:17:52 -04:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
common.c Change the way pg_dump retrieves partitioning info 2017-05-04 22:17:52 -04:00
compress_io.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
compress_io.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
dumputils.c pg_dump: Don't leak memory in buildDefaultACLCommands() 2017-05-06 22:58:12 -04:00
dumputils.h pg_dump: Fix handling of ALTER DEFAULT PRIVILEGES 2017-01-31 16:24:11 -05:00
Makefile Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
nls.mk Translation updates 2016-05-09 10:04:41 -04:00
parallel.c Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
parallel.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pg_backup_archiver.c pg_dump: Dump subscriptions by default 2017-04-13 12:01:27 -04:00
pg_backup_archiver.h pg_dump: Rename some typedefs to avoid name conflicts 2017-04-06 14:16:54 -04:00
pg_backup_custom.c Sync pg_dump and pg_dumpall output 2017-03-22 10:20:13 -04:00
pg_backup_db.c pg_dump: Remove query truncation in error messages 2017-03-29 15:17:14 -04:00
pg_backup_db.h Make pg_dump error cleanly with -j against hot standby 2016-05-26 22:14:23 +02:00
pg_backup_directory.c Sync pg_dump and pg_dumpall output 2017-03-22 10:20:13 -04:00
pg_backup_null.c Create src/fe_utils/, and move stuff into there from pg_dump's dumputils. 2016-03-24 15:55:57 -04:00
pg_backup_tar.c Sync pg_dump and pg_dumpall output 2017-03-22 10:20:13 -04:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pg_backup_utils.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pg_backup.h pg_dump: Always dump subscriptions NOCONNECT 2017-04-13 12:01:27 -04:00
pg_dump_sort.c Implement multivariate n-distinct coefficients 2017-03-24 14:06:10 -03:00
pg_dump.c Change the way pg_dump retrieves partitioning info 2017-05-04 22:17:52 -04:00
pg_dump.h Change the way pg_dump retrieves partitioning info 2017-05-04 22:17:52 -04:00
pg_dumpall.c pg_dumpall: Allow --no-role-passwords and --binary-upgrade together 2017-04-13 21:23:34 -04:00
pg_restore.c pg_dump: Dump subscriptions by default 2017-04-13 12:01:27 -04:00