Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Menu

Commit [r165]  Maximize  Restore  History

Kill bastardly refcount bug that occurs starting with Python 2.0.1.

PyArgs_ParseTupleAndKeywords() returns borrowed references for O format
starting in 2.0.1, prior to that it returns new references, so it's
necessary to test the Python version to determine whether or not we
should Py_INCREF() it. If we always Py_INCREF() it, this produces a
memory leak in versions prior to 2.0.1.

adustman 2001-09-06

changed /trunk/MySQLdb/_mysql.c
/trunk/MySQLdb/_mysql.c Diff Switch to side-by-side view
Loading...