Skip to content

Double free in final code when creating split on the first element of the list #300

@irbull

Description

@irbull

I am getting a double free when splitting on the first element in the list:

    #[test]
    fn test_double_free() {
        let mut list = LinkedList::new();
        list.push_back(7);
        list.push_back(8);
        list.push_back(9);

        let mut cur = list.cursor_mut();
        cur.move_next();
        cur.split_before();
    }

(╯°□°)╯︵ ┻━┻

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions