-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When a linked list's `Handle` type owns the allocation for the item in the list, it is necessary to drain all entries from the list and drop them when the `List` instance is dropped. Otherwise, the entries may be leaked. This fixes a leak reported by Miri. Fixes #165 BREAKING CHANGE: The `List::new` constructor now requires a `T: Linked<list::Links<T>>` bound.
- Loading branch information
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters