We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 312e9ca commit 9925d39Copy full SHA for 9925d39
graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_object.py
@@ -484,7 +484,7 @@ def test_str_subclass(self):
484
* PyObject_New() so we are able to allocate space for the object and
485
* it's data buffer.
486
*/
487
- obj = (PyUnicodeObject *) malloc(struct_size + (size + 1) * char_size);
+ obj = (PyUnicodeObject *) PyObject_MALLOC(struct_size + (size + 1) * char_size);
488
if (obj == NULL)
489
return NULL;
490
obj = (PyUnicodeObject *) PyObject_INIT(obj, testStrSubclassPtr);
0 commit comments