Message304834
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). |
|
Date |
User |
Action |
Args |
2017-10-23 19:11:27 | skrah | set | recipients:
+ skrah, tim.peters, rhettinger, pitrou, vstinner, trent, njs, neologix, wscullin |
2017-10-23 19:11:27 | skrah | link | issue18835 messages |
2017-10-23 19:11:26 | skrah | create | |
|