| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1342,7 +1342,8 @@ PyCArrayType_new(PyTypeObject *type, PyObject *args, PyObject *kwds) | |||
| 1342 | 1342 | if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) | |
| 1343 | 1343 | goto error; | |
| 1344 | 1344 | Py_DECREF(result->tp_dict); | |
| 1345 | - result->tp_dict = (PyObject *)stgdict; | ||
| 1345 | + result->tp_dict = (PyObject *)stgdict; /* steal the reference */ | ||
| 1346 | + stgdict = NULL; | ||
| 1346 | 1347 | ||
| 1347 | 1348 | /* Special case for character arrays. | |
| 1348 | 1349 | A permanent annoyance: char arrays are also strings! | |
| Back | FazBrowse Home | New Git URL |
0 commit comments