]> granicus.if.org Git - python/commit
SF patch #413552 - Premature decref on object
authorTim Peters <tim.peters@gmail.com>
Sat, 7 Apr 2001 20:34:48 +0000 (20:34 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 7 Apr 2001 20:34:48 +0000 (20:34 +0000)
commit388ed08cbf89ec362541bb165045739866fe9c98
treedb1f25a77e655c0334a9fd12969fafbce7c389bf
parent4d4d0034c0987313ef96fd085f1fd616d96ab4ad
SF patch #413552 - Premature decref on object
Jeffery Collins pointed out that filterstring decrefs a character object
before it's done using it.  This works by accident today because another
module always happens to have an active reference too at the time.  The
accident doesn't work after his Pippy modifications, and since it *is*
an accident even in the mainline Python, it should work by design there too.
The patch accomplishes that.
Python/bltinmodule.c