mirror of https://gitee.com/openkylin/libvirt.git
Thu Feb 15 15:47:46 IST 2007 Mark McLoughlin <markmc@redhat.com>
* qemud/conf.c: fix a couple of qemud_vm_def leaks * driver.c: simplify qemudDomainDefine()
This commit is contained in:
parent
6ad5b9d5fb
commit
bf5fae6a8c
|
@ -1,3 +1,9 @@
|
||||||
|
Thu Feb 15 15:47:46 IST 2007 Mark McLoughlin <markmc@redhat.com>
|
||||||
|
|
||||||
|
* qemud/conf.c: fix a couple of qemud_vm_def leaks
|
||||||
|
|
||||||
|
* driver.c: simplify qemudDomainDefine()
|
||||||
|
|
||||||
Wed Feb 14 17:01:24 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
Wed Feb 14 17:01:24 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* qemud/qemud.c: Ensure we create the main libvirt config
|
* qemud/qemud.c: Ensure we create the main libvirt config
|
||||||
|
|
5
NEWS
5
NEWS
|
@ -9,10 +9,11 @@ Releases
|
||||||
- Various internal cleanups (Mark McLoughlin, Richard Jones,
|
- Various internal cleanups (Mark McLoughlin, Richard Jones,
|
||||||
Daniel Berrange, Karel Zak)
|
Daniel Berrange, Karel Zak)
|
||||||
- Bug fixes: avoid a crash in connect (Daniel Berrange), virsh args
|
- Bug fixes: avoid a crash in connect (Daniel Berrange), virsh args
|
||||||
parsing (Richard Jones),
|
parsing (Richard Jones)
|
||||||
|
|
||||||
- Add support for QEmu and KVM virtualization (Daniel Berrange)
|
- Add support for QEmu and KVM virtualization (Daniel Berrange)
|
||||||
- Add support for network configuration (Mark McLoughlin)
|
- Add support for network configuration (Mark McLoughlin)
|
||||||
|
- Minor improvements: regression testing (Daniel Berrange),
|
||||||
|
localization string updates
|
||||||
|
|
||||||
|
|
||||||
0.1.11: Jan 22 2007:
|
0.1.11: Jan 22 2007:
|
||||||
|
|
|
@ -108,6 +108,7 @@ void qemudFreeVMDef(struct qemud_vm_def *def) {
|
||||||
net = net->next;
|
net = net->next;
|
||||||
free(prev);
|
free(prev);
|
||||||
}
|
}
|
||||||
|
free(def);
|
||||||
}
|
}
|
||||||
|
|
||||||
void qemudFreeVM(struct qemud_vm *vm) {
|
void qemudFreeVM(struct qemud_vm *vm) {
|
||||||
|
@ -1211,6 +1212,7 @@ struct qemud_vm *qemudLoadConfigXML(struct qemud_server *server,
|
||||||
} else {
|
} else {
|
||||||
if (!(vm = calloc(1, sizeof(struct qemud_vm)))) {
|
if (!(vm = calloc(1, sizeof(struct qemud_vm)))) {
|
||||||
qemudReportError(server, VIR_ERR_NO_MEMORY, "vm");
|
qemudReportError(server, VIR_ERR_NO_MEMORY, "vm");
|
||||||
|
qemudFreeVMDef(def);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -490,13 +490,7 @@ int qemudDomainStart(struct qemud_server *server, struct qemud_vm *vm) {
|
||||||
|
|
||||||
|
|
||||||
struct qemud_vm *qemudDomainDefine(struct qemud_server *server, const char *xml) {
|
struct qemud_vm *qemudDomainDefine(struct qemud_server *server, const char *xml) {
|
||||||
struct qemud_vm *vm;
|
return qemudLoadConfigXML(server, NULL, xml, 1);
|
||||||
|
|
||||||
if (!(vm = qemudLoadConfigXML(server, NULL, xml, 1))) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return vm;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int qemudDomainUndefine(struct qemud_server *server, const unsigned char *uuid) {
|
int qemudDomainUndefine(struct qemud_server *server, const unsigned char *uuid) {
|
||||||
|
|
Loading…
Reference in New Issue