artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0868859
)
fix an fd leak
author
jsg
<jsg@openbsd.org>
Thu, 18 Aug 2016 00:44:37 +0000
(
00:44
+0000)
committer
jsg
<jsg@openbsd.org>
Thu, 18 Aug 2016 00:44:37 +0000
(
00:44
+0000)
ok schwarze@
usr.bin/mandoc/cgi.c
patch
|
blob
|
history
diff --git
a/usr.bin/mandoc/cgi.c
b/usr.bin/mandoc/cgi.c
index
1fc545e
..
2bb1f6a
100644
(file)
--- a/
usr.bin/mandoc/cgi.c
+++ b/
usr.bin/mandoc/cgi.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: cgi.c,v 1.7
6 2016/08/10 18:39:04 schwarze
Exp $ */
+/* $OpenBSD: cgi.c,v 1.7
7 2016/08/18 00:44:37 jsg
Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@usta.de>
@@
-336,6
+336,7
@@
resp_copy(const char *filename)
fflush(stdout);
while ((sz = read(fd, buf, sizeof(buf))) > 0)
write(STDOUT_FILENO, buf, sz);
+ close(fd);
}
}