[pve-devel] memory leak in PVE/QMPClient.pm

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Fri Oct 26 15:33:46 CEST 2012


please read my 2nd mail. This is sadly not enough. As perl things the 
circ. reference still exists when going out of scope.

We habe to mark the self object in mux as weaken.
Am 26.10.2012 15:24, schrieb Dietmar Maurer:
>> To fix this we need a DESTROY function in QMPClient:
>> sub DESTROY {
>>       my ($self) = @_;
>>
>>       $self->{mux} = undef;
>> }
>>
>> This is enough to remove the circular reference.
>
> great! thanks for that fix.
>



More information about the pve-devel mailing list