Merge pull request #4801 from sysown/v2.7-fix_aux_threads_ssl_leaks

Fix leak of `SSL` caches for auxiliary threads
v2.7-bump_version_to_2.7.3
René Cannaò 1 year ago committed by GitHub
commit f8d0542dfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -89,7 +89,7 @@ class ConsumerThread : public Thread {
m_queue.add(item);
}
// this is intentional to EXIT immediately
return NULL;
goto cleanup;
}
@ -109,6 +109,9 @@ class ConsumerThread : public Thread {
delete item->data;
delete item;
}
cleanup:
// De-initializes per-thread structures. Required in all auxiliary threads using MySQL and SSL.
mysql_thread_end();
return NULL;
}
};

@ -380,6 +380,8 @@ __exit_kill_query_thread:
delete ssl_params;
ssl_params = NULL;
}
// De-initializes per-thread structures. Required in all auxiliary threads using MySQL and SSL.
mysql_thread_end();
return NULL;
}

Loading…
Cancel
Save