Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.0
-
Fix Version/s: 1.0.1
-
Component/s: Generic
-
Labels:None
Description
In mariadb_connection.c: MrdbConnection_close does not increment references to Py_None. This leads to de-reference a null object error after some number of get_connection/close connection of the pool.
Replacing (line 580)
pthread_mutex_unlock(&self->pool->lock);
return Py_None;
with
pthread_mutex_unlock(&self->pool->lock);
Py_INCREF(Py_None);
return Py_None;
fixes the problem.