Skip to content

Duplicate keys in map<K, V> leak handles #14812

Open

Description

@alexcrichton

Right now the semantics of map<K, V> mean that if duplicate keys are supplied then the last-specified key is the one present in the map. This is generally fine but this means that Wasmtime does not provide embedders the means to correctly operate with maps-of-handles because the embedder can't ever properly deallocate the handles it was given. For example if the host is given two own handles it'll only actually receive one of them, meaning the other effectively leaks.

Activity

  1. added 4 commits that reference this issue on Oct 20, 2026
    623c902
    fba996c
    ece069a
    c96be76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions