conf: add missing error on OOM

I removed it in 5c3d5b2 by accident.
This commit is contained in:
Ján Tomko 2013-04-26 18:12:58 +02:00
parent 379e4bcce5
commit d0f7fd9924
1 changed files with 1 additions and 0 deletions

View File

@ -9924,6 +9924,7 @@ virDomainDefMaybeAddController(virDomainDefPtr def,
if (VIR_APPEND_ELEMENT(def->controllers, def->ncontrollers, cont) < 0) {
VIR_FREE(cont);
virReportOOMError();
return -1;
}