1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-04 05:44:18 +03:00

Merge branch '2018-06-04-data-structs'

This commit is contained in:
Joe Thornber
2018-06-08 14:21:07 +01:00
109 changed files with 1116 additions and 1447 deletions

View File

@@ -628,7 +628,7 @@ int device_is_usable(struct device *dev, struct dev_usable_check_params check)
goto out;
}
if (!(vgname = dm_strdup(name)) ||
if (!(vgname = strdup(name)) ||
!dm_split_lvm_name(NULL, NULL, &vgname, &lvname, &layer))
goto_out;
@@ -736,7 +736,7 @@ int device_is_usable(struct device *dev, struct dev_usable_check_params check)
r = 1;
out:
dm_free(vgname);
free(vgname);
dm_task_destroy(dmt);
return r;
}