3 ms·
It looks like this gives you a `ctypes` pointer: https://cppyy.readthedocs.io/en/latest/basic_types.html#pointers https://cppyy.readthedocs.io/en/latest/basic_t
by progval 7y ago
It looks like this gives you a `ctypes` pointer: https://cppyy.readthedocs.io/en/latest/basic_types.html#pointers https://cppyy.readthedocs.io/en/latest/basic_types.html#poin...
So you handle it like any other ctypes pointer, ie. `libc = ctypes.CDLL(find_library("c")); libc.free(ptr)`
Which is not fun in Python. So yeah, better avoid raw pointers.