提交 1128cc93 编写于 作者: M Matthias Bolte 提交者: Daniel Veillard

Avoid a leak in xenDaemonLookupByID

* src/xend_internal.c: free name in xenDaemonLookupByID() if
  virGetDomain() fails
上级 f125d326
......@@ -3723,7 +3723,7 @@ xenDaemonLookupByID(virConnectPtr conn, int id) {
}
ret = virGetDomain(conn, name, uuid);
if (ret == NULL) return NULL;
if (ret == NULL) goto error;
ret->id = id;
VIR_FREE(name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册