Skip to content

HashMap - nextEntry when removing an entry #7

@Helaas

Description

@Helaas

Hello,

I've so far only read the code, and never tried using it, so I'm just making an assumption.

I've noticed that in the remove function, the entry is set to *Null, but the the nextEntry of the previous element isn't updated with the nextEntry of the entry currently removed.

Doesn't this make all the entries after the entry currently deleted inaccessible? I would imagine this would lead to memory leaks because the dispose function loops until "entry@ = *null".

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions