postgres.git / summary / log / commit / refs
commit 83c759ea0ea8ffe07c45e6fd2c489cebce2caad6
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: Thu Dec 16 19:45:11 2010 +0000
First released in: 9.1.0
Fix inconsequential FILE pointer leakage
src/port/exec.c | 1 +
1 file changed, 1 insertion(+)
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;
}
[parent: e359b8496d11]