summaryrefslogtreecommitdiff
path: root/sql/examples/ha_tina.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2005-09-22 16:05:05 +0200
committerunknown <serg@serg.mylan>2005-09-22 16:05:05 +0200
commit87ad1060d3239f08cdf9767612e744040dd6d3e2 (patch)
treec2df90204e86c1ce99206349b62996e68aa4e4cc /sql/examples/ha_tina.cc
parentd2fc3bd4245f8c212046e88151da4a66d1b048b3 (diff)
downloadmariadb-git-87ad1060d3239f08cdf9767612e744040dd6d3e2.tar.gz
fixed a memory leak in ha_tina.cc
Diffstat (limited to 'sql/examples/ha_tina.cc')
-rw-r--r--sql/examples/ha_tina.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/examples/ha_tina.cc b/sql/examples/ha_tina.cc
index e01cc7cc980..5663cd829bd 100644
--- a/sql/examples/ha_tina.cc
+++ b/sql/examples/ha_tina.cc
@@ -234,6 +234,16 @@ static int free_share(TINA_SHARE *share)
DBUG_RETURN(result_code);
}
+bool tina_end()
+{
+ if (tina_init)
+ {
+ hash_free(&tina_open_tables);
+ VOID(pthread_mutex_destroy(&tina_mutex));
+ }
+ tina_init= 0;
+ return FALSE;
+}
/*
Finds the end of a line.