Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport C11 free() #51
Open
Labels
Projects
Comments
|
Maybe we waste a few extra bytes in the aligned space... need a "magic" marker that indicates that this was allocated by aligned_malloc(). If the sentinel matches, then we call the aligned version. |
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With aligned_alloc() in the C11 standard, free() is called to free memory, rather than an equivalent
aligned_free().We should update our library with some logic that can be used to correctly call aligned_free() if free() is used instead.