Skip to content

Using posix_memalign/std::align_alloc and then std::free results in the memory leak detector claiming "Deallocating non-allocated memory" #1853

Description

@vlovich

Allocate some memory with posix_memalign (or the C++ std::aligned_alloc) & then try to free it since free is defined as the corresponding dealloc to pointers returned by posix_memalign. The memory leak detector fails claiming the pointer deallocatino is Deallocating non-allocated memory because posix_memalign isn't intercepted by cpputest..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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