summaryrefslogtreecommitdiff
path: root/storage/xtradb/srv/srv0conc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/xtradb/srv/srv0conc.cc')
-rw-r--r--storage/xtradb/srv/srv0conc.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/xtradb/srv/srv0conc.cc b/storage/xtradb/srv/srv0conc.cc
index c4cf1b9ab7b..b070a8289df 100644
--- a/storage/xtradb/srv/srv0conc.cc
+++ b/storage/xtradb/srv/srv0conc.cc
@@ -165,6 +165,10 @@ srv_conc_free(void)
{
#ifndef HAVE_ATOMIC_BUILTINS
os_fast_mutex_free(&srv_conc_mutex);
+
+ for (ulint i = 0; i < OS_THREAD_MAX_N; i++)
+ os_event_free(srv_conc_slots[i].event);
+
mem_free(srv_conc_slots);
srv_conc_slots = NULL;
#endif /* !HAVE_ATOMIC_BUILTINS */