1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-21 12:05:57 +03:00

Fix inconsequential FILE pointer leakage

This commit is contained in:
Alvaro Herrera 2010-12-16 16:45:11 -03:00
parent e359b8496d
commit 83c759ea0e

View File

@ -357,6 +357,7 @@ pipe_read_line(char *cmd, char *line, int maxsize)
if (fgets(line, maxsize, pgver) == NULL) if (fgets(line, maxsize, pgver) == NULL)
{ {
pclose(pgver); /* no error checking */
perror("fgets failure"); perror("fgets failure");
return NULL; return NULL;
} }