aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-08-01 14:12:33 +0200
committerGitHub <noreply@github.com>2024-08-01 14:12:33 +0200
commitfda6bd842a2b93a501526f1b830eb900d935ac73 (patch)
treed2c76a2c54a99b18fd297662a1b4809f8977a8a4 /Objects/codeobject.c
parent88030861e216ac791725c8784752201d6fe31329 (diff)
downloadcpython-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.c4
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*