[libvirt] [PATCH] Free the macvtap mode string

Daniel P. Berrange berrange at redhat.com
Mon Mar 1 12:47:21 UTC 2010


On Fri, Feb 26, 2010 at 01:03:56PM -0500, Stefan Berger wrote:
> I forgot to free the macvtap mode string. This fixes it.
> 
> Signed-off-by: Stefan Berger <stefanb at us.ibm.com>
> 

> Index: libvirt-macvtap/src/conf/domain_conf.c
> ===================================================================
> --- libvirt-macvtap.orig/src/conf/domain_conf.c
> +++ libvirt-macvtap/src/conf/domain_conf.c
> @@ -1974,6 +1974,7 @@ cleanup:
>      VIR_FREE(type);
>      VIR_FREE(internal);
>      VIR_FREE(devaddr);
> +    VIR_FREE(mode);
>  
>      return def;
>  

ACK

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




More information about the libvir-list mailing list