Merge pull request #4808 from sysown/v3.0-fix_aux_threads_ssl_leaks

Fix leak of SSL caches for auxiliary threads - Port of #4801
pull/4653/head
René Cannaò 1 year ago committed by GitHub
commit d80724758d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -103,7 +103,7 @@ class ConsumerThread : public Thread {
m_queue.add(item);
}
// this is intentional to EXIT immediately
return NULL;
goto cleanup;
}
@ -123,6 +123,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;
}
};

@ -329,6 +329,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