hallidave/ruby-snmp — Issue #5: memory leak
Author: antiveb
Created: 2011-11-14 21:31:07+00:00
State: open

I've found a serious memory leak with opening snmp manager. Tested with latest version 1.0.4.

The easiest to demonstrate is to run irb and type:
1000.times {SNMP::Manager.open(:Host => '192.168.6.66', :Version => :SNMPv1) {|x| }}

Now watch the memory consumption, it just keeps increasing. The host does not even have to exist to demonstrate this leak.