Mercurial > dovecot > original-hg > dovecot-1.2
diff src/plugins/fts-squat/squat-trie.c @ 7223:71af49ba330e HEAD
Assert crashfix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 11 Feb 2008 17:02:43 +0200 |
parents | e042b6385c7b |
children | d5116fa2c88f |
line wrap: on
line diff
--- a/src/plugins/fts-squat/squat-trie.c Sun Feb 10 22:07:18 2008 +0200 +++ b/src/plugins/fts-squat/squat-trie.c Mon Feb 11 17:02:43 2008 +0200 @@ -1214,8 +1214,8 @@ if (uid_count == 0) { /* no UIDs left, delete the node's children and mark it unused */ - i_assert(!NODE_IS_DYNAMIC_LEAF(node)); - node_free(trie, node); + if (!NODE_IS_DYNAMIC_LEAF(node)) + node_free(trie, node); node->child_count = 0; node->have_sequential = FALSE;