1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-29 21:42:28 +03:00

Fixed memleak detected by valgrind

This commit is contained in:
mskold@mysql.com 2006-04-25 12:40:31 +02:00
parent f071779791
commit 435c1028fc

View File

@ -7214,7 +7214,9 @@ void ndb_serialize_cond(const Item *item, void *arg)
prev_cond->next= curr_cond; prev_cond->next= curr_cond;
curr_cond->ndb_item= new Ndb_item(NDB_END_COND); curr_cond->ndb_item= new Ndb_item(NDB_END_COND);
// Pop rewrite stack // Pop rewrite stack
context->rewrite_stack= context->rewrite_stack->next; context->rewrite_stack= rewrite_context->next;
rewrite_context->next= NULL;
delete(rewrite_context);
} }
} }
} }