提交 6fcac926 编写于 作者: M Matthias Bolte 提交者: Daniel Veillard

Avoid another leak in src/xend_internal.c

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