diff --git a/tests/virpcimock.c b/tests/virpcimock.c index 1112a7215ddcde7903d17e4f22e79d4e4a58f8b9..b7f4c11f80e59f5a670ff2d8ca59160909548f6c 100644 --- a/tests/virpcimock.c +++ b/tests/virpcimock.c @@ -511,6 +511,8 @@ pci_driver_new(const char *name, int fail, ...) if (VIR_APPEND_ELEMENT_QUIET(pciDrivers, nPCIDrivers, driver) < 0) ABORT_OOM(); + + VIR_FREE(driverpath); } static struct pciDriver *