It was possible to call VIR_FREE in cleanup prior to initialization --- src/lxc/lxc_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 3268e22..175ea27 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -3821,7 +3821,7 @@ lxcDomainDetachDeviceDiskLive(virLXCDriverPtr driver, virDomainDiskDefPtr def = NULL; virCgroupPtr group = NULL; int i, ret = -1; - char *dst; + char *dst = NULL; if (!priv->initpid) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", @@ -3958,7 +3958,7 @@ lxcDomainDetachDeviceHostdevUSBLive(virLXCDriverPtr driver, virDomainHostdevDefPtr def = NULL; virCgroupPtr group = NULL; int idx, ret = -1; - char *dst; + char *dst = NULL; char *vroot; usbDevice *usb = NULL; -- 1.7.11.7 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list