Commit 435c1028 authored by mskold@mysql.com's avatar mskold@mysql.com

Fixed memleak detected by valgrind

parent f0717797
......@@ -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);
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment