[libvirt] [PATCH] libxl: Properly dispose libxl_domain_config object

Jim Fehlig posted 1 patch 5 years, 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20181106223053.29195-1-jfehlig@suse.com
Test syntax-check passed
src/libxl/libxl_domain.c | 1 +
1 file changed, 1 insertion(+)
[libvirt] [PATCH] libxl: Properly dispose libxl_domain_config object
Posted by Jim Fehlig 5 years, 5 months ago
V2 of the libxl soft reset patch, which was pushed as commit da4b0fd9,
dropped the hunk that disposed of the libxl_domain_config object. Add
the missing hunk to properly dispose the object.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
---

Pushing as trivial...

 src/libxl/libxl_domain.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libxl/libxl_domain.c b/src/libxl/libxl_domain.c
index 6aca7eebf8..5fe3f44fbe 100644
--- a/src/libxl/libxl_domain.c
+++ b/src/libxl/libxl_domain.c
@@ -605,6 +605,7 @@ libxlDomainShutdownThread(void *opaque)
     virObjectEventStateQueue(driver->domainEventState, dom_event);
     libxl_event_free(cfg->ctx, ev);
     VIR_FREE(shutdown_info);
+    libxl_domain_config_dispose(&d_config);
     virObjectUnref(cfg);
 }
 
-- 
2.18.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list