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:18 -0400 |
| commit | 0e78a610f24463f64d8a03b39f06e995581c923a (patch) | |
| tree | 5b78dcfff8853a8312ff5b600f62ab4e50734950 /src/bin/pg_basebackup | |
| parent | 1884708e25c444eb9de6b0665b94c268bab25689 (diff) | |
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')
| -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; } |
