提交 35d31954 编写于 作者: P Peter Krempa

virsh: Fix resource leak while listing inactive domains with titles

Commit fad5cd21 introduces a new flag
that allows to show domain's title with domains. This commit introduced
resource leak while listing inactive domains with titles.
上级 046b0a69
......@@ -1012,10 +1012,10 @@ cmdList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
"-",
names[i],
state == -2 ? _("saved") : _(vshDomainStateToString(state)));
}
virDomainFree(dom);
VIR_FREE(names[i]);
}
}
ret = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册