Skip to content
Snippets Groups Projects
Commit 83c759ea authored by Alvaro Herrera's avatar Alvaro Herrera
Browse files

Fix inconsequential FILE pointer leakage

parent e359b849
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment