Skip to content

Memory leak in MemPool #7

@TarakanoLov

Description

@TarakanoLov

Hi, I'm reading https://github.com/PacktPublishing/Building-Low-Latency-Applications-with-CPP/blob/main/Chapter4/mem_pool.h and I can't understand why the destructor in deallocate is not called, it turns out after creation std::string will leak memory in place of the old std::string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions