Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7223:71af49ba330e HEAD
Assert crashfix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 11 Feb 2008 17:02:43 +0200 |
parents | 3deaf85bb47c |
children | d5116fa2c88f |
files | src/plugins/fts-squat/squat-trie.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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;