]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: use init and dispose functions with libxl_physinfo
authorJim Fehlig <jfehlig@suse.com>
Wed, 1 Feb 2017 03:07:30 +0000 (20:07 -0700)
committerJim Fehlig <jfehlig@suse.com>
Wed, 8 Feb 2017 16:12:00 +0000 (09:12 -0700)
commitc89a6e7878e630718cce0af940e9c070c132ce30
treeaa9b3932bdb7a6f22543ad0207616e94068c2953
parentff225538d42f8e50bbc2c1c74d0a882ebaa73cd4
libxl: use init and dispose functions with libxl_physinfo

The typical pattern when calling libxl functions that populate a
structure is

  libxl_foo foo;
  libxl_foo_init(&foo);
  libxl_get_foo(ctx, &foo);
  ...
  libxl_foo_dispose(&foo);

Fix several instances of libxl_physinfo missing the init and
dispose calls.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_capabilities.c
src/libxl/libxl_conf.c
src/libxl/libxl_driver.c