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:
parent
e359b8496d
commit
83c759ea0e
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user