diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 213a9a1218..90ab09f723 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -4321,6 +4321,7 @@ testStoragePoolUndefine(virStoragePoolPtr pool) } virStoragePoolObjRemove(&privconn->pools, privpool); + privpool = NULL; ret = 0; cleanup: