projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e72cb5d
)
btrfs-progs: Add missing close_ctree to btrfs-select-super.c
author
Zhao Lei
<zhaolei@cn.fujitsu.com>
Mon, 26 Oct 2015 10:28:21 +0000
(18:28 +0800)
committer
David Sterba
<dsterba@suse.com>
Mon, 2 Nov 2015 08:35:08 +0000
(09:35 +0100)
Add missing close_ctree() to btrfs-select-super.c to avoid memory leak.
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-select-super.c
patch
|
blob
|
history
diff --git
a/btrfs-select-super.c
b/btrfs-select-super.c
index
bd44978
..
df74153
100644
(file)
--- a/
btrfs-select-super.c
+++ b/
btrfs-select-super.c
@@
-102,6
+102,7
@@
int main(int ac, char **av)
*/
printf("using SB copy %llu, bytenr %llu\n", (unsigned long long)num,
(unsigned long long)bytenr);
+ close_ctree(root);
btrfs_close_all_devices();
return ret;
}