Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 83c759e

Browse files
committed
Fix inconsequential FILE pointer leakage
1 parent e359b84 commit 83c759e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/port/exec.c

+1
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ pipe_read_line(char *cmd, char *line, int maxsize)
357357

358358
if (fgets(line, maxsize, pgver) == NULL)
359359
{
360+
pclose(pgver); /* no error checking */
360361
perror("fgets failure");
361362
return NULL;
362363
}

0 commit comments

Comments
 (0)