diff --git a/tests/testutilsxen.c b/tests/testutilsxen.c index b73c79581d7212ec4487d1f1c79b0fccc24eeab8..76da33826c6cbc2dd5dbaa3f8ee25e4dcd1c09d5 100644 --- a/tests/testutilsxen.c +++ b/tests/testutilsxen.c @@ -94,7 +94,8 @@ libxlDriverPrivatePtr testXLInitDriver(void) return NULL; } - driver->config = libxlDriverConfigNew(); + if (!(driver->config = libxlDriverConfigNew())) + return NULL; driver->config->caps = testXLInitCaps();