mirror of https://gitee.com/openkylin/libvirt.git
parent
379e4bcce5
commit
d0f7fd9924
|
@ -9924,6 +9924,7 @@ virDomainDefMaybeAddController(virDomainDefPtr def,
|
|||
|
||||
if (VIR_APPEND_ELEMENT(def->controllers, def->ncontrollers, cont) < 0) {
|
||||
VIR_FREE(cont);
|
||||
virReportOOMError();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue