From f36f2e463f877292ee1f30dcb1000337739c2fd3 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Sat, 22 Jul 2017 07:05:55 -0400 Subject: [PATCH] storage: Fix editing mistake in storagePoolSetAutostart Commit id '905f1024b' had a rogue editing mistake that inadvertently dropped a goto cleanup in storagePoolSetAutostart, but Coverity noted it. --- src/storage/storage_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index df563f1bda..e616ae0561 100644 --- a/src/storage/storage_driver.c +++ b/src/storage/storage_driver.c @@ -1280,6 +1280,7 @@ storagePoolSetAutostart(virStoragePoolPtr pool, if (!obj->configFile) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("pool has no config file")); + goto cleanup; } autostart = (autostart != 0); -- 2.39.5