There's probably something seriously wrong with the following code. It leaks one instance of Sequel::SQLite::Database per iteration. (Well, it's actually not a leak, since the instance is available via ObjectSpace.) Is there something else I should be doing to tell Sequel (or SQLite?) to release the instance so it can be collected?

require 'sequel'

filename = "test.sqlite"

loop do
  sleep 1
  db = Sequel.sqlite(filename)
  db.disconnect
  p ObjectSpace.each_object(Sequel::SQLite::Database) {}
end


--
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to