summaryrefslogtreecommitdiff
path: root/fs/bcachefs/recovery.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-03-07 13:30:55 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:36 -0400
commit27beb810235615820584e15afc31e130e90793f8 (patch)
tree5c0ebb0815c5c4c122ebaf3ee03a873fea6ca4da /fs/bcachefs/recovery.c
parente65fcb4362d5480b6a62be32014c8643f70a8bfc (diff)
bcachefs: Fix another iterator leak
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r--fs/bcachefs/recovery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c
index 1871485c079d..3b9c20cf389a 100644
--- a/fs/bcachefs/recovery.c
+++ b/fs/bcachefs/recovery.c
@@ -424,6 +424,7 @@ static int __bch2_journal_replay_key(struct btree_trans *trans,
return PTR_ERR(iter);
bch2_trans_update(trans, iter, k, BTREE_TRIGGER_NORUN);
+ bch2_trans_iter_put(trans, iter);
return 0;
}