mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Reset released pointer and counters.
DSO is currently not dl_close-ing pluing during it is unregister handling, so clear structure and related counter, so there are no memory problems. Futher fixes are needed.
This commit is contained in:
parent
dfcb905db0
commit
d40821aabc
@ -1213,6 +1213,10 @@ static void _fin_commands(void)
|
||||
dm_free(_cmdline.commands[i].valid_args);
|
||||
|
||||
dm_free(_cmdline.commands);
|
||||
|
||||
_cmdline.commands = NULL;
|
||||
_cmdline.num_commands = 0;
|
||||
_cmdline.commands_size = 0;
|
||||
}
|
||||
|
||||
void lvm_fin(struct cmd_context *cmd)
|
||||
|
Loading…
Reference in New Issue
Block a user