Minor XML cleanups, add missing free() call
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
parent
cb92591c38
commit
258ed1dc00
@ -221,6 +221,7 @@ domainStarted(virDomainPtr mojaDomain)
|
|||||||
|
|
||||||
// parseXML output
|
// parseXML output
|
||||||
doc = xmlParseMemory(xml, strlen(xml));
|
doc = xmlParseMemory(xml, strlen(xml));
|
||||||
|
xmlFree(xml);
|
||||||
cur = xmlDocGetRootElement(doc);
|
cur = xmlDocGetRootElement(doc);
|
||||||
|
|
||||||
if (cur == NULL) {
|
if (cur == NULL) {
|
||||||
@ -252,17 +253,15 @@ domainStarted(virDomainPtr mojaDomain)
|
|||||||
if (attr == NULL)
|
if (attr == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (xmlStrcmp
|
if (xmlStrcmp(attr->children->content,
|
||||||
(attr->children->content,
|
(const xmlChar *) "unix")) {
|
||||||
(const xmlChar *) "unix")) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (serial = child->xmlChildrenNode; serial != NULL;
|
for (serial = child->xmlChildrenNode; serial != NULL;
|
||||||
serial = serial->next) {
|
serial = serial->next) {
|
||||||
if (xmlStrcmp
|
if (xmlStrcmp(serial->name,
|
||||||
(serial->name,
|
(const xmlChar *) "source")) {
|
||||||
(const xmlChar *) "source")) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user