]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #19437: Fix _threading.RLock constructor (rlock_new), call
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 5 Nov 2013 14:10:19 +0000 (15:10 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 5 Nov 2013 14:10:19 +0000 (15:10 +0100)
commit357f5155dc74b691a683a571b1316ce8473c40d0
tree9532e72c7c039e21f9b367663414222ec9b4c83a
parent85a12a8bebd20e86fa3931940d7e317fa392cfb8
Issue #19437: Fix _threading.RLock constructor (rlock_new), call
Py_DECREF(self) if PyThread_allocate_lock() failed instead of calling directly
type->tp_free(self), to keep the chained list of objects consistent when Python
is compiled in debug mode

fails, don't consume the row (restore it) and fail immediatly (don't call
pysqlite_step())
Modules/_threadmodule.c