Remove superfluous PQfinish() call

Connection was previously closed, if this error condition is triggered
a segfault will occur.
This commit is contained in:
Ian Barwick
2016-09-29 11:53:13 +09:00
parent ea45158f50
commit dc70e2d804

View File

@@ -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)] =