]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libxl: Properly dispose libxl_domain_config object
authorJim Fehlig <jfehlig@suse.com>
Tue, 6 Nov 2018 22:21:19 +0000 (15:21 -0700)
committerJim Fehlig <jfehlig@suse.com>
Tue, 6 Nov 2018 22:21:19 +0000 (15:21 -0700)
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>
src/libxl/libxl_domain.c

index 6aca7eebf8b6de7113d4ff16a5da40afd48f08a7..5fe3f44fbec75302f70b85bbe7af8c17e5a31d7a 100644 (file)
@@ -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);
 }