Fixed double free of XML property

This commit is contained in:
Daniel P. Berrange 2007-07-18 21:47:47 +00:00
parent b3033b99f9
commit ba8648896f
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed Jul 18 17:45:08 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* src/qemu_conf.c: Remove double free of XML property upon
error cleanup
Wed Jul 18 17:15:08 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* tests/Makefile.am: Added QEMU tests

View File

@ -1159,7 +1159,6 @@ static struct qemud_vm_def *qemudParseXML(virConnectPtr conn,
} else if (!strcmp((char *)prop, "net")) {
def->os.bootDevs[def->os.nBootDevs++] = QEMUD_BOOT_NET;
} else {
xmlFree(prop);
goto error;
}
xmlFree(prop);