In the last section if the function determines that the config is
invalid when QEMU doesn't support the memory device the JSON config
object would be returned even if it doesn't make sense.
Assign the object to be returned only on success.
goto cleanup;
}
- *backendProps = props;
- props = NULL;
-
if (!hugepage) {
bool nodeSpecified = virDomainNumatuneNodeSpecified(def->numa, guestNode);
/* report back that using the new backend is not necessary to achieve
* the desired configuration */
if (!userNodeset && !nodeSpecified) {
+ *backendProps = props;
+ props = NULL;
ret = 1;
goto cleanup;
}
}
+ *backendProps = props;
+ props = NULL;
ret = 0;
cleanup: