There's one case where the return value of virConfSetValue() is
not checked for and it's in xenFormatXLInputDevs() function.
Let's fix that.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
goto error;
virConfFreeValue(usbdevices);
} else {
- virConfSetValue(conf, "usbdevice", usbdevices);
+ if (virConfSetValue(conf, "usbdevice", usbdevices) < 0) {
+ usbdevices = NULL;
+ goto error;
+ }
+ usbdevices = NULL;
}
} else {
VIR_FREE(usbdevices);