mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
conf: add missing error on OOM
I removed it in 5c3d5b2 by accident.
This commit is contained in:
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…
x
Reference in New Issue
Block a user