You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2011/08/10 22:24:07 UTC

svn commit: r1156352 - /couchdb/branches/1.0.x/src/couchdb/couch_log.erl

Author: rnewson
Date: Wed Aug 10 20:24:07 2011
New Revision: 1156352

URL: http://svn.apache.org/viewvc?rev=1156352&view=rev
Log:
COUCHDB-1244 - close file descriptor in couch_log:read/2

Modified:
    couchdb/branches/1.0.x/src/couchdb/couch_log.erl

Modified: couchdb/branches/1.0.x/src/couchdb/couch_log.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/src/couchdb/couch_log.erl?rev=1156352&r1=1156351&r2=1156352&view=diff
==============================================================================
--- couchdb/branches/1.0.x/src/couchdb/couch_log.erl (original)
+++ couchdb/branches/1.0.x/src/couchdb/couch_log.erl Wed Aug 10 20:24:07 2011
@@ -148,4 +148,5 @@ read(Bytes, Offset) ->
     % TODO: make streaming
 
     {ok, Chunk} = file:pread(Fd, Start, LogFileSize),
+    ok = file:close(Fd),
     Chunk.