Stefan Krah <ste...@bytereef.org> added the comment: On Mon, Oct 23, 2017 at 05:16:53PM +0000, STINNER Victor wrote: > Memory allocated by PyMem_AlignedAlloc() must be freed with > PyMem_AlignedFree(). > > We cannot reuse PyMem_Free(). On Windows, PyMem_AlignedAlloc() is implemented > with _aligned_malloc() which requires to release the memory with > _aligned_free().
Ah, too bad. Of course Windows does something different again. This weakens my use case somewhat, but I guess it would still be nice to have the functions (if you think it's maintainable). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue18835> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com