While the potential memory leak is small, ensure to PQclear the query
results before disconnecting.
Author: Jiao Shuntian <
312199339@qq.com>
Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/
[email protected]
/* Querying the catalog succeeded, but amcheck is missing. */
pg_log_warning("skipping database \"%s\": amcheck is not installed",
PQdb(conn));
+ PQclear(result);
disconnectDatabase(conn);
conn = NULL;
continue;