summaryrefslogtreecommitdiff
path: root/cmds-replace.c
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-10-26 18:28:18 +0800
committerDavid Sterba <dsterba@suse.com>2015-11-02 09:35:07 +0100
commit30fd6f2e92695c355c8f76b8887cd4fade60cdac (patch)
tree4b313f017bd5c8cab074ef3ea6154a004846b40b /cmds-replace.c
parent1c4aefc2b80df30fde528fb47d34f72dade18fc2 (diff)
btrfs-progs: btrfs: Add missing btrfs_close_all_devices for btrfs command
Adding a btrfs_close_all_devices() after command callback in btrfs.c can force-close all opened device before program exit, to avoid memory leak in all btrfs sub-command. Suggested-by: David Sterba <dsterba@suse.cz> Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-replace.c')
0 files changed, 0 insertions, 0 deletions