Skip Menu |

This queue is for tickets about the SNMP CPAN distribution.

Report information
The Basics
Id: 30432
Status: new
Priority: 0/
Queue: SNMP

People
Owner: Nobody in particular
Requestors: rlandrito [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 5.0401
Fixed in: (no value)



Subject: memory leak when using gettable()
The memory footprint increases with every iteration of a loop over $session->gettable(); (see attached script) Memory footprint does not increase when get $session->get() is used instead. Let me know if you need more info. Thanks! Debian Sid Linux rossi 2.6.22-2-686 #1 SMP Fri Aug 31 00:24:01 UTC 2007 i686 GNU/Linux Perl v5.8.8: This is perl, v5.8.8 built for i486-linux-gnu-thread-multi SNMP 5.0401
Subject: snmp-leak.pl
#!/usr/bin/perl # use strict; use SNMP; my $session = new SNMP::Session (DestHost => 'myhost', Community => "public", Version => 1); my $table; while (<STDIN>) { $table = $session->gettable('ifTable'); }