diff options
author | Robert Newson <rnewson@apache.org> | 2011-08-10 20:23:52 +0000 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2011-08-10 20:23:52 +0000 |
commit | 5385dee622f39df1110bdca76e2a1b1c3bd5540c (patch) | |
tree | d4b6f4fac0458c466c563bb87a855038a1c1761e | |
parent | 916f33c309b53f981400e39a0d65281fd03c6754 (diff) |
COUCHDB-1244 - close file descriptor in couch_log:read/2
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1156351 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/couchdb/couch_log.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couchdb/couch_log.erl b/src/couchdb/couch_log.erl index 67549bcc..bb75f161 100644 --- a/src/couchdb/couch_log.erl +++ b/src/couchdb/couch_log.erl @@ -180,4 +180,5 @@ read(Bytes, Offset) -> % TODO: make streaming {ok, Chunk} = file:pread(Fd, Start, LogFileSize), + ok = file:close(Fd), Chunk. |