summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2016-06-30 10:24:54 -0400
committerNirbhay Choubey <nirbhay@mariadb.com>2016-06-30 10:24:54 -0400
commit10880d67b95d29dc1a764f2ee5c2010dc89659df (patch)
tree99e92f6497a61a9836d2f3bf42435018402b5031 /storage
parentf629f5354850728d85d6b915d2a3fe7192f00cd5 (diff)
downloadmariadb-git-10880d67b95d29dc1a764f2ee5c2010dc89659df.tar.gz
Postfix: memory leak in XtraDBmariadb-galera-10.0.26
Diffstat (limited to 'storage')
-rw-r--r--storage/xtradb/srv/srv0srv.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/storage/xtradb/srv/srv0srv.cc b/storage/xtradb/srv/srv0srv.cc
index 73fc93f9597..4377801f117 100644
--- a/storage/xtradb/srv/srv0srv.cc
+++ b/storage/xtradb/srv/srv0srv.cc
@@ -1209,13 +1209,14 @@ srv_free(void)
os_event_free(srv_buf_dump_event);
os_event_free(srv_checkpoint_completed_event);
os_event_free(srv_redo_log_tracked_event);
-#ifdef WITH_INNODB_DISALLOW_WRITES
- os_event_free(srv_allow_writes_event);
-#endif /* WITH_INNODB_DISALLOW_WRITES */
mutex_free(&srv_sys->mutex);
mutex_free(&srv_sys->tasks_mutex);
}
+#ifdef WITH_INNODB_DISALLOW_WRITES
+ os_event_free(srv_allow_writes_event);
+#endif /* WITH_INNODB_DISALLOW_WRITES */
+
#ifndef HAVE_ATOMIC_BUILTINS
mutex_free(&server_mutex);
#endif