Mercurial > dovecot > core-2.2
changeset 134:2ec94f1bf60b HEAD
messageset traversal: if user function requested stop, we leaked t_pop().
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 03 Sep 2002 23:34:05 +0300 |
parents | 788d8536ee18 |
children | 24c8fcb78e0e |
files | src/lib-index/mail-messageset.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-messageset.c Tue Sep 03 23:28:09 2002 +0300 +++ b/src/lib-index/mail-messageset.c Tue Sep 03 23:34:05 2002 +0300 @@ -70,8 +70,10 @@ break; t_push(); - if (!func(index, rec, seq, context)) + if (!func(index, rec, seq, context)) { + t_pop(); return 0; + } t_pop(); rec = index->next(index, rec); @@ -237,8 +239,10 @@ i_assert(*expunges != rec->uid); t_push(); - if (!func(index, rec, seq, context)) + if (!func(index, rec, seq, context)) { + t_pop(); return 0; + } t_pop(); seq++;