提交 29c2a9cc 编写于 作者: J Ján Tomko

udevSetupSystemDev: return if allocation fails

There is no cleanup to be done.
上级 d1d47198
......@@ -1384,8 +1384,8 @@ static int udevSetupSystemDev(void)
virNodeDeviceObjPtr dev = NULL;
int ret = -1;
if (VIR_ALLOC(def) != 0)
goto out;
if (VIR_ALLOC(def) < 0)
return -1;
if (VIR_STRDUP(def->name, "computer") < 0)
goto out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册