mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix missing dmt destructor
Also always initialize maj,min,patchlevel when success is returned.
This commit is contained in:
parent
a980f56d2a
commit
209da6efee
@ -1,5 +1,6 @@
|
||||
Version 2.02.89 -
|
||||
==================================
|
||||
Fix memleak in target_version() error path (unsupported LIST_VERSIONS).
|
||||
Limit alignment to 32bit values.
|
||||
Check for correctness of uint64 dev_size value.
|
||||
Rename origin_only parameter to more generic flag use_layer for lv_info().
|
||||
|
@ -481,7 +481,11 @@ int target_version(const char *target_name, uint32_t *maj,
|
||||
if (!dm_task_run(dmt)) {
|
||||
log_debug("Failed to get %s target version", target_name);
|
||||
/* Assume this was because LIST_VERSIONS isn't supported */
|
||||
return 1;
|
||||
*maj = 0;
|
||||
*min = 0;
|
||||
*patchlevel = 0;
|
||||
r = 1;
|
||||
goto out;
|
||||
}
|
||||
|
||||
target = dm_task_get_versions(dmt);
|
||||
|
Loading…
Reference in New Issue
Block a user