btrfs: ref-verify: fix memory leak in btrfs_ref_tree_mod
[linux-2.6-microblaze.git] / fs / btrfs / ref-verify.c
index 7f03dbe..78693d3 100644 (file)
@@ -860,6 +860,7 @@ int btrfs_ref_tree_mod(struct btrfs_fs_info *fs_info,
 "dropping a ref for a root that doesn't have a ref on the block");
                        dump_block_entry(fs_info, be);
                        dump_ref_action(fs_info, ra);
+                       kfree(ref);
                        kfree(ra);
                        goto out_unlock;
                }