summaryrefslogtreecommitdiff
path: root/lib/btrfsprogs
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-03-14 13:39:34 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2023-03-14 19:44:46 -0600
commit5dcdb9928d6a746dd69f620d96531ae2fcbd2fe1 (patch)
treefaf2cbf955a2b086eec3fef9072a3e47e7dc067a /lib/btrfsprogs
parent59c432ca78d30193fca20f14280743cd430b7095 (diff)
fixup! btrfstree: Add a FreeNodeRef function, use it
Diffstat (limited to 'lib/btrfsprogs')
-rw-r--r--lib/btrfsprogs/btrfsutil/broken_btree.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/btrfsprogs/btrfsutil/broken_btree.go b/lib/btrfsprogs/btrfsutil/broken_btree.go
index 15641ab..b7663fa 100644
--- a/lib/btrfsprogs/btrfsutil/broken_btree.go
+++ b/lib/btrfsprogs/btrfsutil/broken_btree.go
@@ -281,6 +281,7 @@ func (bt *brokenTrees) TreeSearchAll(treeID btrfsprim.ObjID, fn func(btrfsprim.K
}
}
ret[i] = node.Data.BodyLeaf[itemPath.Node(-1).FromItemIdx]
+ ret[i].Body = ret[i].Body.CloneItem()
}
btrfstree.FreeNodeRef(node)