Skip to content

thmap_destroy of non-empty tree #15

@nuclight

Description

@nuclight

In using like a hashmap, a need may be possible to destroy the tree without first deleting all entries, in situations when "foreach" or sibling access is not needed. Then, looking at code, I guess it will just leak all nodes. An obvious "solution" of linked list may incur too much memory overhead. Could destroy() just iterate all nodes internally and free them?

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