mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
src/test.c (testLoadDomain): Avoid leaks upon failure.
This commit is contained in:
parent
1217e5d516
commit
34dff95bfd
@ -1,5 +1,7 @@
|
||||
Wed Jan 30 20:49:34 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
* src/test.c (testLoadDomain): Avoid leaks upon failure.
|
||||
|
||||
Avoid used-uninitialized errors in test driver.
|
||||
* src/test.c (testOpenFromFile): Initialize "privconn".
|
||||
|
||||
|
@ -327,7 +327,7 @@ static int testLoadDomain(virConnectPtr conn,
|
||||
}
|
||||
}
|
||||
if (handle < 0)
|
||||
return (-1);
|
||||
goto error;
|
||||
|
||||
privconn->domains[handle].active = 1;
|
||||
privconn->domains[handle].id = domid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user