mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
Add missing destrustion of cmd_context
Lvm1 fallback code missed to destroy cmd_context in error path.
This commit is contained in:
parent
9d6d98c900
commit
46f84d5cb9
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.78 -
|
Version 2.02.78 -
|
||||||
====================================
|
====================================
|
||||||
|
Fix missing context desctruction in err path of lvm1 fallback in lvm2_main().
|
||||||
Fix memory leak in error path of parse_loop_device_name() from dmsetup.
|
Fix memory leak in error path of parse_loop_device_name() from dmsetup.
|
||||||
Fix missing dlclose in _init_formats() error path from init_format call.
|
Fix missing dlclose in _init_formats() error path from init_format call.
|
||||||
Fix missing fclose for _umount() in dmeventd snapshot plugin.
|
Fix missing fclose for _umount() in dmeventd snapshot plugin.
|
||||||
|
@ -1447,10 +1447,12 @@ int lvm2_main(int argc, char **argv)
|
|||||||
if (!argc) {
|
if (!argc) {
|
||||||
log_error("Falling back to LVM1 tools, but no "
|
log_error("Falling back to LVM1 tools, but no "
|
||||||
"command specified.");
|
"command specified.");
|
||||||
return ECMD_FAILED;
|
ret = ECMD_FAILED;
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
_exec_lvm1_command(argv);
|
_exec_lvm1_command(argv);
|
||||||
return ECMD_FAILED;
|
ret = ECMD_FAILED;
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
#ifdef READLINE_SUPPORT
|
#ifdef READLINE_SUPPORT
|
||||||
if (!alias && argc == 1) {
|
if (!alias && argc == 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user