Skip to content

Memory Leak in Array_Implementation.cs #3

Description

@tatelax

FYI for anyone who cares:

This line is setting the value to null in the Object array called data. This doesn't actually remove the element from the array, it just sets it to null. If you were to actually use this code, memory would only increase because when you call delete(), it doesn't free up anything.

The way to solve this in C# would be to create an entirely new array with a length of -1 from the original array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions