mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
openvz_conf.c: don't dereference NULL upon failure
* src/openvz/openvz_conf.c (openvzLoadDomains): Avoid NULL deref of "dom".
This commit is contained in:
parent
20fa7cdb32
commit
c1237818d2
@ -535,7 +535,8 @@ int openvzLoadDomains(struct openvz_driver *driver) {
|
||||
|
||||
cleanup:
|
||||
fclose(fp);
|
||||
virDomainObjUnref(dom);
|
||||
if (dom)
|
||||
virDomainObjUnref(dom);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user