summaryrefslogtreecommitdiff
path: root/mysys/tree.c
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2001-07-02 21:52:22 +0200
committerserg@serg.mysql.com <>2001-07-02 21:52:22 +0200
commit004313688277d2f079750c191eda748874a3cc31 (patch)
treeb02cd20fcbc632447cd4b10782204969c9e6af34 /mysys/tree.c
parent15b6738474fd9df56c4aff8f984278cd374bd3f3 (diff)
parent9e9f21a5c9832e783eccd76499ba1472a4feed3d (diff)
downloadmariadb-git-004313688277d2f079750c191eda748874a3cc31.tar.gz
merged
Diffstat (limited to 'mysys/tree.c')
-rw-r--r--mysys/tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mysys/tree.c b/mysys/tree.c
index 1ea7e48a790..7100b72345c 100644
--- a/mysys/tree.c
+++ b/mysys/tree.c
@@ -312,6 +312,8 @@ int tree_delete(TREE *tree, void *key)
}
if (remove_colour == BLACK)
rb_delete_fixup(tree,parent);
+ if (tree->free)
+ (*tree->free)(ELEMENT_KEY(tree,element));
my_free((gptr) element,MYF(0));
tree->elements_in_tree--;
return 0;