Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
src/util/virlockspace.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/util/virlockspace.c b/src/util/virlockspace.c
index edf2ec907f..46bd922f35 100644
--- a/src/util/virlockspace.c
+++ b/src/util/virlockspace.c
@@ -293,8 +293,7 @@ virLockSpace *virLockSpaceNewPostExecRestart(virJSONValue *object)
return NULL;
}
- if (!(lockspace->resources = virHashNew(virLockSpaceResourceDataFree)))
- goto error;
+ lockspace->resources = virHashNew(virLockSpaceResourceDataFree);
if (virJSONValueObjectHasKey(object, "directory")) {
const char *dir = virJSONValueObjectGetString(object, "directory");
--
2.31.1