提交 03d48a87 编写于 作者: D Daniel P. Berrange

Fix double free in XML parsing

上级 aeccfe85
Thu Mar 8 22:07:14 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* qemud/conf.c: Fix double free in XML parsing routine
Thu Mar 8 18:31:14 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* qemud/Makefile.am: Make sure to create $PREFIX/var/run/libvirt
......
......@@ -828,6 +828,7 @@ static struct qemud_vm_def *qemudParseXML(struct qemud_server *server,
goto error;
}
xmlFree(prop);
prop = NULL;
}
}
xmlXPathFreeObject(obj);
......@@ -877,6 +878,7 @@ static struct qemud_vm_def *qemudParseXML(struct qemud_server *server,
goto error;
}
xmlFree(prop);
prop = NULL;
}
xmlXPathFreeObject(obj);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册