mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 00:26:30 +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)
|
if (sscanf(p, "%d,%d,%d", &x, &y, &z) != 3)
|
||||||
{
|
{
|
||||||
fprintf(stderr, _("cannot parse --csv output: %s\n"), p);
|
fprintf(stderr, _("cannot parse --csv output: %s\n"), p);
|
||||||
PQfinish(conn);
|
|
||||||
exit(ERR_INTERNAL);
|
exit(ERR_INTERNAL);
|
||||||
}
|
}
|
||||||
(*cube)[i * n * n + (x - 1) * n + (y - 1)] =
|
(*cube)[i * n * n + (x - 1) * n + (y - 1)] =
|
||||||
|
|||||||
Reference in New Issue
Block a user