diff options
author | Akira Higuchi <ahiguti100@gmail.com> | 2015-08-11 15:42:25 +0900 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2016-03-18 14:32:18 +0400 |
commit | 4f0fc0f91281004fb91cf293e691a52125c4069d (patch) | |
tree | e9fe5d11060354806d183fbffa2b9cc090093b35 /plugin/handler_socket | |
parent | ee768d8e0e17b655f8f51bc631fb77c68f48c722 (diff) | |
download | mariadb-git-4f0fc0f91281004fb91cf293e691a52125c4069d.tar.gz |
fix a memory leak in handlersocket
Diffstat (limited to 'plugin/handler_socket')
-rw-r--r-- | plugin/handler_socket/handlersocket/database.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/handler_socket/handlersocket/database.cpp b/plugin/handler_socket/handlersocket/database.cpp index 8ea7b5061a1..7c2c5e797d2 100644 --- a/plugin/handler_socket/handlersocket/database.cpp +++ b/plugin/handler_socket/handlersocket/database.cpp @@ -304,6 +304,7 @@ dbcontext::init_thread(const void *stack_bottom, volatile int& shutdown_flag) thd->db = 0; thd->db = my_strdup("handlersocket", MYF(0)); } + thd->variables.option_bits |= OPTION_TABLE_LOCK; my_pthread_setspecific_ptr(THR_THD, thd); DBG_THR(fprintf(stderr, "HNDSOCK x0 %p\n", thd)); } |