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

Dietmar Maurer dietmar at proxmox.com
Mon Oct 29 10:52:25 CET 2012


Ignore me - this does not work at all.

> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Dietmar Maurer
> Sent: Montag, 29. Oktober 2012 10:49
> To: Stefan Priebe - Profihost AG; pve-devel at pve.proxmox.com
> Subject: Re: [pve-devel] memory leak in PVE/QMPClient.pm
> 
> Instead, the following works (without using weaken):
> 
> sub DESTROY {
>     my ($self) = @_;
> 
>     # delete self referenced from mux
>     $self->{mux}->{_object} = undef;
> }
> 
> What do you think?
> 
> > -----Original Message-----
> > From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> > bounces at pve.proxmox.com] On Behalf Of Dietmar Maurer
> > Sent: Montag, 29. Oktober 2012 10:46
> > To: Stefan Priebe - Profihost AG; pve-devel at pve.proxmox.com
> > Subject: Re: [pve-devel] memory leak in PVE/QMPClient.pm
> >
> > Why do we need that (seems to work without DESTROY)?
> >
> > > +sub DESTROY {
> > > +    my ($self) = @_;
> > > +
> > > +    # delete self referenced mux
> > > +    $self->{mux} = undef;
> > > +}
> >
> > _______________________________________________
> > pve-devel mailing list
> > pve-devel at pve.proxmox.com
> > http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel





More information about the pve-devel mailing list