mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 15:15:34 +02:00
Fix threadpool memory leak and connect2 test
This commit is contained in:
parent
f12229f63e
commit
351026ca53
5 changed files with 11 additions and 2 deletions
|
|
@ -663,6 +663,7 @@ void tp_add_connection(CONNECT *connect)
|
|||
{
|
||||
connection_t *con;
|
||||
con= (connection_t *)malloc(sizeof(connection_t));
|
||||
DBUG_EXECUTE_IF("simulate_failed_connection_1", free(con);con= 0; );
|
||||
if (!con)
|
||||
{
|
||||
tp_log_warning("Allocation failed", "tp_add_connection");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue