projects
/
krsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdff3aa
)
close() file after GET
author
()
<nilclass@riseup.net>
Tue, 18 Jun 2013 14:37:16 +0000
(16:37 +0200)
committer
()
<nilclass@riseup.net>
Tue, 18 Jun 2013 14:37:16 +0000
(16:37 +0200)
src/handler/storage.c
patch
|
blob
|
history
diff --git
a/src/handler/storage.c
b/src/handler/storage.c
index
e991192
..
239693f
100644
(file)
--- a/
src/handler/storage.c
+++ b/
src/handler/storage.c
@@
-576,6
+576,7
@@
static evhtp_res serve_file(evhtp_request_t *request, const char *disk_path, str
}
while(evbuffer_read(request->buffer_out, fd, 4096) != 0);
evhtp_send_reply(request, EVHTP_RES_OK);
+ close(fd);
return 0;
}