From c3a145177d4d314f92ed9790eef43fd2776428d8 Mon Sep 17 00:00:00 2001
From: unknown <knielsen@knielsen-hq.org>
Date: Mon, 18 Oct 2010 11:43:05 +0200
Subject: [PATCH] MWL#116: Efficient group commit: Fix memory leak.

---
 sql/log.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sql/log.cc b/sql/log.cc
index d99f04d4425..6ec186b3786 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -166,6 +166,7 @@ class binlog_trx_data {
   ~binlog_trx_data()
   {
     DBUG_ASSERT(pending() == NULL);
+    (void) pthread_mutex_destroy(&LOCK_group_commit);
     close_cached_file(&trans_log);
   }
 
-- 
2.30.9