Skip to content

Commit b751e17

Browse files
committed
Remove unnecessary memset.
1 parent fc61993 commit b751e17

File tree

1 file changed

+0
-1
lines changed
  • graalpython/com.oracle.graal.python.cext/src

1 file changed

+0
-1
lines changed

graalpython/com.oracle.graal.python.cext/src/object.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ PyObject _Py_NotImplementedStruct = {
141141
PyObject* PyType_GenericAlloc(PyTypeObject* cls, Py_ssize_t nitems) {
142142
Py_ssize_t size = cls->tp_basicsize + cls->tp_itemsize * nitems;
143143
PyObject* newObj = (PyObject*)PyObject_Malloc(size);
144-
memset(newObj, 0, size);
145144
if(cls->tp_dictoffset) {
146145
*((PyObject **) ((char *)newObj + cls->tp_dictoffset)) = NULL;
147146
}

0 commit comments

Comments
 (0)