From e42428d592d1985e4060065c7551e8400ec93fe0 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 25 Apr 2006 12:40:31 +0200 Subject: [PATCH] Fixed memleak detected by valgrind --- sql/ha_ndbcluster.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index 17bbfa9943e..bdd49b06b98 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -7214,7 +7214,9 @@ void ndb_serialize_cond(const Item *item, void *arg) prev_cond->next= curr_cond; curr_cond->ndb_item= new Ndb_item(NDB_END_COND); // Pop rewrite stack - context->rewrite_stack= context->rewrite_stack->next; + context->rewrite_stack= rewrite_context->next; + rewrite_context->next= NULL; + delete(rewrite_context); } } }