https://docs.arenadata.io/en/l....anding-adh/index.htm
Indeed, it is required to make use of the samememory API family for a given memory block, in order that the risk of blending differentallocators is decreased to a minimum. The following code sequence accommodates twoerrors, certainly one of which is labeled as deadly as a end result of it mixes two differentallocators working on different heaps. In most conditions, nevertheless, it is strongly recommended to allocate memory from thePython heap particularly as a result of the latter is under control of the Pythonmemory manager. Arenada