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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user