mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-07-28 06:40:03 +00:00
Fix for CONC-132: Fix leak in connection pool
When closing a connection pool the allocated buffer for pool_name was not freed in a proper way.
This commit is contained in:
@ -534,7 +534,8 @@ MrdbPool_close(MrdbPool *self)
|
||||
{
|
||||
PyDict_DelItemString(cnx_pool, self->pool_name);
|
||||
}
|
||||
self->pool_name= NULL;
|
||||
MARIADB_FREE_MEM(self->pool_name);
|
||||
self->pool_name= 0;
|
||||
}
|
||||
pthread_mutex_unlock(&self->lock);
|
||||
pthread_mutex_destroy(&self->lock);
|
||||
|
Reference in New Issue
Block a user