mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
uml: don't free an uninitialized variable
* src/uml_driver.c (umlDomainShutdown): Initialize "info". Patch and bug report from Ron Yorston <rmy@tigress.co.uk>.
This commit is contained in:
parent
937c1e9e92
commit
0e9349a28d
@ -1,3 +1,9 @@
|
||||
Mon, 1 Dec 2008 10:30:10 +0100 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
uml: don't free an uninitialized variable
|
||||
* src/uml_driver.c (umlDomainShutdown): Initialize "info".
|
||||
Patch and bug report from Ron Yorston <rmy@tigress.co.uk>.
|
||||
|
||||
Sun Nov 30 18:36:33 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/xen_inotify.c: Close directory handle once done
|
||||
|
@ -1163,7 +1163,7 @@ static virDomainPtr umlDomainCreate(virConnectPtr conn, const char *xml,
|
||||
static int umlDomainShutdown(virDomainPtr dom) {
|
||||
struct uml_driver *driver = (struct uml_driver *)dom->conn->privateData;
|
||||
virDomainObjPtr vm = virDomainFindByID(&driver->domains, dom->id);
|
||||
char* info;
|
||||
char *info = NULL;
|
||||
|
||||
if (!vm) {
|
||||
umlReportError(dom->conn, dom, NULL, VIR_ERR_INVALID_DOMAIN,
|
||||
@ -1672,4 +1672,3 @@ int umlRegister(void) {
|
||||
virRegisterStateDriver(¨StateDriver);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user