Skip to content

memory leak in ustring #3913

@DougRogers

Description

@DougRogers

ustring cpp

    ustring::TableRep* make_rep(string_view str, size_t hash)
    {
        char* repmem = pool_alloc(sizeof(ustring::TableRep) + str.length() + 1);
        return new (repmem) ustring::TableRep(str, hash);
    }

        ustring::TableRep* rep = make_rep(str, hash);
        entries[pos]           = rep;

all entries are not freed. The only call I see is

free(entries);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions