mongodb/mongo-ruby-driver — pull request #117 by ssimeonov (2012-09-29 23:32:58+00:00)
Title: Eliminates cursor leak in database

The current implementation of `Mongo::Collection#find` will fail to close a cursor in the cases of an exception. This pull request fixes the problem by wrapping the `yield` statement in a `begin-ensure-end` block.