Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx> --- 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 9986d8df41..edf2ec907f 100644 --- a/src/util/virlockspace.c +++ b/src/util/virlockspace.c @@ -247,8 +247,7 @@ virLockSpace *virLockSpaceNew(const char *directory) lockspace->dir = g_strdup(directory); - if (!(lockspace->resources = virHashNew(virLockSpaceResourceDataFree))) - goto error; + lockspace->resources = virHashNew(virLockSpaceResourceDataFree); if (directory) { if (virFileExists(directory)) { -- 2.31.1