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

Re: [libvirt] [PATCH] Convert a few stray users of free() in libvirt.c to VIR_FREE().



On Fri, Jul 31, 2009 at 03:19:54PM +0200, Chris Lalancette wrote:
> Signed-off-by: Chris Lalancette <clalance redhat com>
> ---
>  src/libvirt.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/libvirt.c b/src/libvirt.c
> index 167359f..9fd864d 100644
> --- a/src/libvirt.c
> +++ b/src/libvirt.c
> @@ -3020,7 +3020,7 @@ virDomainMigrate (virDomainPtr domain,
>          ret = dconn->driver->domainMigratePrepare2
>              (dconn, &cookie, &cookielen, uri, &uri_out, flags, dname,
>               bandwidth, dom_xml);
> -        free (dom_xml);
> +        VIR_FREE (dom_xml);
>          if (ret == -1) goto done;
>          if (uri == NULL && uri_out == NULL) {
>              virLibConnError (conn, VIR_ERR_INTERNAL_ERROR,
> @@ -3062,8 +3062,8 @@ virDomainMigrate (virDomainPtr domain,
>      }
>  
>   done:
> -    free (uri_out);
> -    free (cookie);
> +    VIR_FREE (uri_out);
> +    VIR_FREE (cookie);
>      return ddomain;
>  
>  error:
> -- 

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]