1
0
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:
Zdenek Kabelac 2010-11-24 09:53:31 +00:00
parent 9d6d98c900
commit 46f84d5cb9
2 changed files with 5 additions and 2 deletions

View File

@ -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.

View File

@ -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) {