diff --git a/src/port/exec.c b/src/port/exec.c index 742318d0570..cc044ea5f03 100644 --- a/src/port/exec.c +++ b/src/port/exec.c @@ -357,6 +357,7 @@ pipe_read_line(char *cmd, char *line, int maxsize) if (fgets(line, maxsize, pgver) == NULL) { + pclose(pgver); /* no error checking */ perror("fgets failure"); return NULL; }