We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code:
from memory import Pointer from memory import alloc def test_pointer(): ptr = alloc(4) Pointer(ptr) test_pointer()
Output:
free(): double free detected in tcache 2
This also applies to CustomType.
CustomType
from memory import alloc from memory import make_object from memory.manager import CustomType from memory.manager import TypeManager manager = TypeManager() class Test(CustomType, metaclass=manager): _size = 4 def test_customtype(): ptr = alloc(4) make_object(Test, ptr) test_customtype()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Code:
Output:
This also applies to
CustomType
.Code:
Output:
The text was updated successfully, but these errors were encountered: