<div dir="ltr"><div><div><div><div>Howdy,<br><br>I found a memory leak in Net::DNS::Packet/Net::DNS::Header in 0.72 that basically amounts to:<br><br></div><div>  $packet->{header} = $header;<br>  $header->{xbody} = $packet;<br>
<br></div><div>(See Net::DNS::Header::new())<br></div><div><br>Looking at trunk, I see that the leak is no longer there since most of the code was rewritten.<br><br></div>I was curious when a new release of Net::DNS was planned since this leak is fairly significant and happens any time a Net::DNS::Packet object is created. This leaks very quickly for example:<br>
<br>  while (1) {<br></div>    my $packet = Net::DNS::Packet->new('<a href="http://test.com">test.com</a>', 'A');<br>  }<br><br></div>Thanks,<br><br></div>-- Matthew Horsfall (alh)<br></div>