mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Remove superfluous PQfinish() call
Connection was previously closed, if this error condition is triggered a segfault will occur.
This commit is contained in:
1
repmgr.c
1
repmgr.c
@@ -1500,7 +1500,6 @@ build_cluster_diagnose(int **cube, char **node_names, int *name_length)
|
||||
if (sscanf(p, "%d,%d,%d", &x, &y, &z) != 3)
|
||||
{
|
||||
fprintf(stderr, _("cannot parse --csv output: %s\n"), p);
|
||||
PQfinish(conn);
|
||||
exit(ERR_INTERNAL);
|
||||
}
|
||||
(*cube)[i * n * n + (x - 1) * n + (y - 1)] =
|
||||
|
||||
Reference in New Issue
Block a user