提交 e2ea90ce 编写于 作者: J John Ferlan 提交者: Peter Krempa

lxc: Need to initialize 'dst'

It was possible to call VIR_FREE in cleanup prior to initialization
上级 50adf827
...@@ -3824,7 +3824,7 @@ lxcDomainDetachDeviceDiskLive(virLXCDriverPtr driver, ...@@ -3824,7 +3824,7 @@ lxcDomainDetachDeviceDiskLive(virLXCDriverPtr driver,
virDomainDiskDefPtr def = NULL; virDomainDiskDefPtr def = NULL;
virCgroupPtr group = NULL; virCgroupPtr group = NULL;
int i, ret = -1; int i, ret = -1;
char *dst; char *dst = NULL;
if (!priv->initpid) { if (!priv->initpid) {
virReportError(VIR_ERR_OPERATION_INVALID, "%s", virReportError(VIR_ERR_OPERATION_INVALID, "%s",
...@@ -3961,7 +3961,7 @@ lxcDomainDetachDeviceHostdevUSBLive(virLXCDriverPtr driver, ...@@ -3961,7 +3961,7 @@ lxcDomainDetachDeviceHostdevUSBLive(virLXCDriverPtr driver,
virDomainHostdevDefPtr def = NULL; virDomainHostdevDefPtr def = NULL;
virCgroupPtr group = NULL; virCgroupPtr group = NULL;
int idx, ret = -1; int idx, ret = -1;
char *dst; char *dst = NULL;
char *vroot; char *vroot;
usbDevice *usb = NULL; usbDevice *usb = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册