OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e359b84
)
Fix inconsequential FILE pointer leakage
author
Alvaro Herrera
<alvherre@alvh.no-ip.org>
Thu, 16 Dec 2010 19:45:11 +0000
(16:45 -0300)
committer
Alvaro Herrera
<alvherre@alvh.no-ip.org>
Thu, 16 Dec 2010 19:45:11 +0000
(16:45 -0300)
src/port/exec.c
patch
|
blob
|
history
diff --git
a/src/port/exec.c
b/src/port/exec.c
index
742318d
..
cc044ea
100644
(file)
--- a/
src/port/exec.c
+++ b/
src/port/exec.c
@@
-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;
}