[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] VMware ESX 2/3: Fix memleak if esxOpen fails



On Wed, Aug 05, 2009 at 03:23:14PM +0200, Matthias Bolte wrote:
> Subject says it all.
> 
> Matthias

> diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c
> index 8b8575c..49fdf00 100644
> --- a/src/esx/esx_driver.c
> +++ b/src/esx/esx_driver.c
> @@ -298,6 +298,7 @@ esxOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags ATTRIBUTE_UNUSED)
>          esxVI_Context_Free(&priv->host);
>          esxVI_Context_Free(&priv->vcenter);
>  
> +        VIR_FREE(priv->transport);
>          VIR_FREE(priv);
>      }

ACK


Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]