1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-22 21:53:06 +03:00

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
This commit is contained in:
Tom Lane
2015-07-12 16:25:51 -04:00
parent 3ed26e5f87
commit bcc87b6b00
4 changed files with 13 additions and 5 deletions

View File

@@ -414,6 +414,7 @@ DropReplicationSlot(PGconn *conn, const char *slot_name)
return false;
}
destroyPQExpBuffer(query);
PQclear(res);
return true;
}