summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authormskold@mysql.com <>2006-04-25 12:40:31 +0200
committermskold@mysql.com <>2006-04-25 12:40:31 +0200
commit435c1028fcdea41011dba945dcea4c5e02114e8c (patch)
treebafb3f8d9663a805dcbd7ca66487173931446de8 /sql/ha_ndbcluster.cc
parentf071779791d2bae55a03a6f2e158907a1f40ae5e (diff)
downloadmariadb-git-435c1028fcdea41011dba945dcea4c5e02114e8c.tar.gz
Fixed memleak detected by valgrind
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc4
1 files changed, 3 insertions, 1 deletions
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);
}
}
}