Re: [libvirt] [PATCH 2/2] libxl: use init and dispose functions with libxl_physinfo

2017-02-08 Thread Jim Fehlig
Joao Martins wrote: > On 02/08/2017 04:17 PM, Jim Fehlig wrote: >> Joao Martins wrote: >>> On 02/02/2017 10:39 PM, Jim Fehlig wrote: The typical pattern when calling libxl functions that populate a structure is libxl_foo foo; libxl_foo_init(); libxl_get_foo(ctx,

Re: [libvirt] [PATCH 2/2] libxl: use init and dispose functions with libxl_physinfo

2017-02-08 Thread Joao Martins
On 02/08/2017 04:17 PM, Jim Fehlig wrote: > Joao Martins wrote: >> On 02/02/2017 10:39 PM, Jim Fehlig wrote: >>> The typical pattern when calling libxl functions that populate a >>> structure is >>> >>> libxl_foo foo; >>> libxl_foo_init(); >>> libxl_get_foo(ctx, ); >>> ... >>>

Re: [libvirt] [PATCH 2/2] libxl: use init and dispose functions with libxl_physinfo

2017-02-08 Thread Jim Fehlig
Joao Martins wrote: > On 02/02/2017 10:39 PM, Jim Fehlig wrote: >> The typical pattern when calling libxl functions that populate a >> structure is >> >> libxl_foo foo; >> libxl_foo_init(); >> libxl_get_foo(ctx, ); >> ... >> libxl_foo_dispose(); >> >> Fix several instances of

Re: [libvirt] [PATCH 2/2] libxl: use init and dispose functions with libxl_physinfo

2017-02-08 Thread Joao Martins
On 02/02/2017 10:39 PM, Jim Fehlig wrote: > The typical pattern when calling libxl functions that populate a > structure is > > libxl_foo foo; > libxl_foo_init(); > libxl_get_foo(ctx, ); > ... > libxl_foo_dispose(); > > Fix several instances of libxl_physinfo missing the init and >

[libvirt] [PATCH 2/2] libxl: use init and dispose functions with libxl_physinfo

2017-02-02 Thread Jim Fehlig
The typical pattern when calling libxl functions that populate a structure is libxl_foo foo; libxl_foo_init(); libxl_get_foo(ctx, ); ... libxl_foo_dispose(); Fix several instances of libxl_physinfo missing the init and dispose calls. Signed-off-by: Jim Fehlig ---