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:
Georg Richter
2020-11-23 15:15:13 +01:00
parent 35a12359b5
commit 0f0468a085

View File

@ -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);