commit | 505ff755d704c73ac613d3e8fed02c79c6ae555a | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sun Feb 09 13:33:53 2014 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sun Feb 09 13:33:53 2014 +0200 |
tree | b9b0142cbeca125a1bcf0413e48d938d0cd390d3 | |
parent | e9c31470e1680b7c9b9ee83c378b891e90ac58ab [diff] [blame] |
Issue #20437: Fixed 21 potential bugs when deleting objects references.
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 808e595..b312130 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c
@@ -952,8 +952,7 @@ PyFrame_Fini(void) { (void)PyFrame_ClearFreeList(); - Py_XDECREF(builtin_object); - builtin_object = NULL; + Py_CLEAR(builtin_object); } /* Print summary info about the state of the optimized allocator */