diff options
-rw-r--r-- | sql/ha_ndbcluster_cond.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sql/ha_ndbcluster_cond.h b/sql/ha_ndbcluster_cond.h index adc12e8cd74..6baf6945b58 100644 --- a/sql/ha_ndbcluster_cond.h +++ b/sql/ha_ndbcluster_cond.h @@ -265,16 +265,12 @@ class Ndb_cond : public Sql_alloc Note - doing it recursively causes stack issues for big IN clauses */ - if (prev != NULL) - { - next= prev= NULL; - return; - } Ndb_cond *n= next; while (n) { Ndb_cond *tmp= n; n= n->next; + tmp->next= NULL; delete tmp; } next= prev= NULL; |