From 4f0fc0f91281004fb91cf293e691a52125c4069d Mon Sep 17 00:00:00 2001 From: Akira Higuchi Date: Tue, 11 Aug 2015 15:42:25 +0900 Subject: [PATCH] fix a memory leak in handlersocket --- plugin/handler_socket/handlersocket/database.cpp | 1 + 1 file changed, 1 insertion(+) 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)); }