LVM2/tools lvmcmdline.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2010-01-21 13:41:39
Modified files:
tools : lvmcmdline.c
Log message:
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.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvmcmdline.c.diff?cvsroot=lvm2&r1=1.111&r2=1.112
tools/lvmcmdline.c +4 -0
@@ -1213,6 +1213,10 @@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)