commit | 1616645a0032b45c935ec6bdbb1d46b3febf0827 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Tue Jul 12 22:04:20 2011 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Tue Jul 12 22:04:20 2011 +0200 |
tree | 402f294b56e32dbc6066a176d5f609a18bc125dc | |
parent | 0504532c39ffdf6cb8e4b7b283da60027473a4a5 [diff] |
Issue #12149: Update the method cache after a type's dictionnary gets cleared by the garbage collector. This fixes a segfault when an instance and its type get caught in a reference cycle, and the instance's deallocator calls one of the methods on the type (e.g. when subclassing IOBase). Diagnosis and patch by Davide Rizzo.