On 6.11.2013, at 11.31, Tomasz Potega <tpot...@wp-sa.pl> wrote: > imap_msgpart_crlf_seek() returns an error stream in case of problems > in message_skip_virtual(). The original input stream is not being > unreferenced, preventing destroy callbacks from being executed. > > Shouldn't we have an i_stream_unref(&input) here: > > src/lib-imap-storage/imap-msgpart.c: > 398 if (message_skip_virtual(input, virtual_skip, &cr_skipped) > < 0) { > 399 errinput = i_stream_create_error(errno); > 400 i_stream_set_name(errinput, i_stream_get_name(input)); > 401 return errinput; > 402 } > > ?
Yep: http://hg.dovecot.org/dovecot-2.2/rev/0505adfe2d8e