Skip Menu |

This queue is for tickets about the Net-DHCP CPAN distribution.

Report information
The Basics
Id: 61693
Status: resolved
Priority: 0/
Queue: Net-DHCP

People
Owner: Nobody in particular
Requestors: dean [...] fragfest.com.au
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.66
Fixed in: (no value)



Subject: ->marshall() has large memory leak
the marshall() function is extremely useful to avoid repeatedly creating and destroying the Net::DHCP option. the same object can be used to decode subsequent packets. unfortunately the marshall function doesnt clear the previous data from addOptionsRaw(), so subsequent raw options are concatenated to the object gradually filling memory. if you create a new object each time, this isnt a problem.
this is solved easily enough by adding this code to the marhsall sub delete $self->{options} if $self->{options}; delete $self->{options_order} if $self->{options_order}; On Mon Sep 27 09:36:11 2010, djzort wrote: Show quoted text
> the marshall() function is extremely useful to avoid repeatedly creating > and destroying the Net::DHCP option. the same object can be used to > decode subsequent packets. > > unfortunately the marshall function doesnt clear the previous data from > addOptionsRaw(), so subsequent raw options are concatenated to the > object gradually filling memory. > > if you create a new object each time, this isnt a problem.
fixed in 0.67