diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-07-12 16:25:51 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-07-12 16:26:08 -0400 |
commit | bcc87b6b00de5b36984e0b43a78a8377a3577548 (patch) | |
tree | 28974457c072e07003e8f02e338a2d5eddf48243 /src/bin/pg_basebackup/streamutil.c | |
parent | 3ed26e5f87a90bedaa3d7feb9e197e0d9f3fb252 (diff) | |
download | postgresql-bcc87b6b00de5b36984e0b43a78a8377a3577548.tar.gz postgresql-bcc87b6b00de5b36984e0b43a78a8377a3577548.zip |
Fix assorted memory leaks.
Per Coverity (not that any of these are so non-obvious that they should not
have been caught before commit). The extent of leakage is probably minor
to unnoticeable, but a leak is a leak. Back-patch as necessary.
Michael Paquier
Diffstat (limited to 'src/bin/pg_basebackup/streamutil.c')
-rw-r--r-- | src/bin/pg_basebackup/streamutil.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_basebackup/streamutil.c b/src/bin/pg_basebackup/streamutil.c index a5cad350f8a..91f919c34cd 100644 --- a/src/bin/pg_basebackup/streamutil.c +++ b/src/bin/pg_basebackup/streamutil.c @@ -414,6 +414,7 @@ DropReplicationSlot(PGconn *conn, const char *slot_name) return false; } + destroyPQExpBuffer(query); PQclear(res); return true; } |