mirror of
https://github.com/postgres/postgres.git
synced 2025-09-05 02:22:28 +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:
@@ -393,9 +393,9 @@ vacuum_one_database(const char *dbname, vacuumingOptions *vacopts,
|
||||
for (i = 0; i < ntups; i++)
|
||||
{
|
||||
appendPQExpBufferStr(&buf,
|
||||
fmtQualifiedId(PQserverVersion(conn),
|
||||
PQgetvalue(res, i, 1),
|
||||
PQgetvalue(res, i, 0)));
|
||||
fmtQualifiedId(PQserverVersion(conn),
|
||||
PQgetvalue(res, i, 1),
|
||||
PQgetvalue(res, i, 0)));
|
||||
|
||||
simple_string_list_append(&dbtables, buf.data);
|
||||
resetPQExpBuffer(&buf);
|
||||
@@ -412,6 +412,7 @@ vacuum_one_database(const char *dbname, vacuumingOptions *vacopts,
|
||||
concurrentCons = ntups;
|
||||
if (concurrentCons <= 1)
|
||||
parallel = false;
|
||||
PQclear(res);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user