[pve-devel] memory leak in PVE/QMPClient.pm
Dietmar Maurer
dietmar at proxmox.com
Mon Oct 29 12:50:25 CET 2012
I just uploaded the fixes. The pvetest repository contains all fixes.
Please can you test?
> -----Original Message-----
> From: Stefan Priebe - Profihost AG [mailto:s.priebe at profihost.ag]
> Sent: Freitag, 26. Oktober 2012 15:34
> To: Dietmar Maurer
> Cc: pve-devel at pve.proxmox.com
> Subject: Re: [pve-devel] memory leak in PVE/QMPClient.pm
>
> 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