Commit 83c759ea authored by Alvaro Herrera's avatar Alvaro Herrera

Fix inconsequential FILE pointer leakage

parent e359b849
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment