Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

NODE48 deletion during tear down of the tree was not considering all children. [ART]

Kishore Nallan2c9f3f973f3d
diff --git a/src/art.cpp b/src/art.cpp
index 515e60ee..9227f34b 100644
--- a/src/art.cpp
+++ b/src/art.cpp
@@ -170,7 +170,7 @@ static void destroy_node(art_node *n) {
case NODE48:
p.p3 = (art_node48*)n;
- for (i=0;i<n->num_children;i++) {
+ for (i=0;i<48;i++) {
destroy_node(p.p3->children[i]);
}
break;