diff options
author | Victor Stinner <vstinner@python.org> | 2024-08-01 14:12:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-01 14:12:33 +0200 |
commit | fda6bd842a2b93a501526f1b830eb900d935ac73 (patch) | |
tree | d2c76a2c54a99b18fd297662a1b4809f8977a8a4 /Objects/codeobject.c | |
parent | 88030861e216ac791725c8784752201d6fe31329 (diff) | |
download | cpython-fda6bd842a2b93a501526f1b830eb900d935ac73.tar.gz cpython-fda6bd842a2b93a501526f1b830eb900d935ac73.zip |
Replace PyObject_Del with PyObject_Free (#122453)
PyObject_Del() is just a alias to PyObject_Free() kept for backward
compatibility. Use directly PyObject_Free() instead.
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r-- | Objects/codeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index d45ba5ed4a9..6423a4214bf 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -1352,7 +1352,7 @@ PyTypeObject _PyLineIterator = { 0, /* tp_init */ 0, /* tp_alloc */ 0, /* tp_new */ - PyObject_Del, /* tp_free */ + PyObject_Free, /* tp_free */ }; static lineiterator * @@ -1443,7 +1443,7 @@ PyTypeObject _PyPositionsIterator = { 0, /* tp_init */ 0, /* tp_alloc */ 0, /* tp_new */ - PyObject_Del, /* tp_free */ + PyObject_Free, /* tp_free */ }; static PyObject* |