pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/0c6c52f49605f757c4a125ca195a2123bd930b93

stylesheet" href="https://github.githubassets.com/assets/global-d18f184ea1a06a2c.css" /> gh-111178: Fix PyRangeIter_Type deallocator (#131162) · python/cpython@0c6c52f · GitHub
Skip to content

Commit 0c6c52f

Browse files
authored
gh-111178: Fix PyRangeIter_Type deallocator (#131162)
Don't use PyObject_Free() as tp_dealloc to avoid an undefined behavior. Instead, use the default deallocator which just calls tp_free which is PyObject_Free().
1 parent 36978f7 commit 0c6c52f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/rangeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ PyTypeObject PyRangeIter_Type = {
910910
sizeof(_PyRangeIterObject), /* tp_basicsize */
911911
0, /* tp_itemsize */
912912
/* methods */
913-
(destructor)PyObject_Free, /* tp_dealloc */
913+
0, /* tp_dealloc */
914914
0, /* tp_vectorcall_offset */
915915
0, /* tp_getattr */
916916
0, /* tp_setattr */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy