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,6 +535,7 @@ int openvzLoadDomains(struct openvz_driver *driver) {
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
if (dom)
|
||||||
virDomainObjUnref(dom);
|
virDomainObjUnref(dom);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user