diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2010-12-16 16:45:11 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2010-12-16 16:45:11 -0300 |
commit | 83c759ea0ea8ffe07c45e6fd2c489cebce2caad6 (patch) | |
tree | 7f72d9d278bff0d7133be1a58f1a78c3ec3e3632 | |
parent | e359b8496d11befb63d4734874d997909c44ad83 (diff) | |
download | postgresql-83c759ea0ea8ffe07c45e6fd2c489cebce2caad6.tar.gz postgresql-83c759ea0ea8ffe07c45e6fd2c489cebce2caad6.zip |
Fix inconsequential FILE pointer leakage
-rw-r--r-- | src/port/exec.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |