Skip to content

Commit

Permalink
Fix bytes leak on retry
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Nov 27, 2024
1 parent 1029f10 commit f701d75
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,11 @@ impl<Tx: TransactionWithMeta> PrioGraphScheduler<Tx> {
continue;
}
}
// Transaction must be dropped before removing, since we
// currently have ownership of the transaction, and
// therefore may have a reference to the backing-memory
// that the container expects to be free.
drop(transaction);
container.remove_by_id(id);
}

Expand Down

0 comments on commit f701d75

Please sign in to comment.