summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ctree.c6
-rw-r--r--restore.c3
2 files changed, 0 insertions, 9 deletions
diff --git a/ctree.c b/ctree.c
index 2d86b1e7..848722c6 100644
--- a/ctree.c
+++ b/ctree.c
@@ -2872,9 +2872,6 @@ int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path)
}
slot--;
- if (next)
- free_extent_buffer(next);
-
next = read_node_slot(root, c, slot);
break;
}
@@ -2920,9 +2917,6 @@ int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path)
continue;
}
- if (next)
- free_extent_buffer(next);
-
if (path->reada)
reada_for_search(root, path, level, slot, 0);
diff --git a/restore.c b/restore.c
index ecabc3e2..4853203c 100644
--- a/restore.c
+++ b/restore.c
@@ -102,9 +102,6 @@ int next_leaf(struct btrfs_root *root, struct btrfs_path *path)
continue;
}
- if (next)
- free_extent_buffer(next);
-
if (path->reada)
reada_for_search(root, path, level, slot, 0);