diff options
author | 2016-08-18 00:44:37 +0000 | |
---|---|---|
committer | 2016-08-18 00:44:37 +0000 | |
commit | fd3cdd868792f9d858a1b46606cd09519e5af8e6 (patch) | |
tree | 60d1fcf4f4a1d5918198868f05d985ccfe9e2f8b | |
parent | add section on VM networking. more to come, this is a starting point for (diff) | |
download | wireguard-openbsd-fd3cdd868792f9d858a1b46606cd09519e5af8e6.tar.xz wireguard-openbsd-fd3cdd868792f9d858a1b46606cd09519e5af8e6.zip |
fix an fd leak
ok schwarze@
-rw-r--r-- | usr.bin/mandoc/cgi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/cgi.c b/usr.bin/mandoc/cgi.c index 1fc545ecf99..2bb1f6a8981 100644 --- a/usr.bin/mandoc/cgi.c +++ b/usr.bin/mandoc/cgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgi.c,v 1.76 2016/08/10 18:39:04 schwarze Exp $ */ +/* $OpenBSD: cgi.c,v 1.77 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); } } |