fix a memory leak in handlersocket

This commit is contained in:
Akira Higuchi 2015-08-11 15:42:25 +09:00 committed by Sergey Vojtovich
commit 4f0fc0f912

View file

@ -304,6 +304,7 @@ dbcontext::init_thread(const void *stack_bottom, volatile int& shutdown_flag)
thd->db = 0; thd->db = 0;
thd->db = my_strdup("handlersocket", MYF(0)); thd->db = my_strdup("handlersocket", MYF(0));
} }
thd->variables.option_bits |= OPTION_TABLE_LOCK;
my_pthread_setspecific_ptr(THR_THD, thd); my_pthread_setspecific_ptr(THR_THD, thd);
DBG_THR(fprintf(stderr, "HNDSOCK x0 %p\n", thd)); DBG_THR(fprintf(stderr, "HNDSOCK x0 %p\n", thd));
} }