summaryrefslogtreecommitdiff
path: root/plugin/handler_socket
diff options
context:
space:
mode:
authorAkira Higuchi <ahiguti100@gmail.com>2015-08-11 15:42:25 +0900
committerSergey Vojtovich <svoj@mariadb.org>2016-03-18 14:32:18 +0400
commit4f0fc0f91281004fb91cf293e691a52125c4069d (patch)
treee9fe5d11060354806d183fbffa2b9cc090093b35 /plugin/handler_socket
parentee768d8e0e17b655f8f51bc631fb77c68f48c722 (diff)
downloadmariadb-git-4f0fc0f91281004fb91cf293e691a52125c4069d.tar.gz
fix a memory leak in handlersocket
Diffstat (limited to 'plugin/handler_socket')
-rw-r--r--plugin/handler_socket/handlersocket/database.cpp1
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));
}