summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMattias Jonsson <mattiasj@mysql.com>2008-08-19 12:26:30 +0200
committerMattias Jonsson <mattiasj@mysql.com>2008-08-19 12:26:30 +0200
commit55bf4addb6d7ca9408a7df969bae0825240e4496 (patch)
treeef4d3aeb902b8b764a9473c4675ffa73972c661b /sql
parentc6bbad9e507061eeecf775a68d68c1437b6aeb68 (diff)
parentad15cd6882bad7d329190e77936225573282ce1a (diff)
downloadmariadb-git-55bf4addb6d7ca9408a7df969bae0825240e4496.tar.gz
merge
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_partition.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc
index c203f71d466..d2497081893 100644
--- a/sql/ha_partition.cc
+++ b/sql/ha_partition.cc
@@ -2494,6 +2494,8 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
err_handler:
while (file-- != m_file)
(*file)->close();
+ if (!is_clone)
+ bitmap_free(&(m_part_info->used_partitions));
DBUG_RETURN(error);
}