]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: dispose libxl_dominfo after libxl_domain_info()
authorJoao Martins <joao.m.martins@oracle.com>
Thu, 21 Jan 2016 10:21:10 +0000 (10:21 +0000)
committerJim Fehlig <jfehlig@suse.com>
Thu, 21 Jan 2016 16:49:57 +0000 (09:49 -0700)
commitd18d6a85f95244a35bff67054e9f0d04135639a5
treef824c9b42c823834db3e3ebc79f276bbb62b9583
parent8c3c32f16a553edb56ac8e2250ca1f7d85787f5c
libxl: dispose libxl_dominfo after libxl_domain_info()

As suggested in a previous thread [0] this patch adds some missing calls
to libxl_dominfo_{init,dispose} when doing some of the libxl_domain_info
operations which would otherwise lead to memory leaks.

[0]
https://www.redhat.com/archives/libvir-list/2015-September/msg00519.html

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
src/libxl/libxl_driver.c