Commit 710dcfd2 authored by stratakis's avatar stratakis Committed by Victor Stinner

[2.7] bpo-13096: Fix memory leak in ctypes POINTER handling of large values (GH-12100)

parent 67988d12
Fix memory leak in ctypes POINTER handling of large values.
......@@ -1831,6 +1831,7 @@ POINTER(PyObject *self, PyObject *cls)
"s(O){}",
buf,
&PyCPointer_Type);
PyMem_Free(buf);
if (result == NULL)
return result;
key = PyLong_FromVoidPtr(result);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment