[Dovecot] Missing i_stream_unref in imap_msgpart_crlf_seek()?
Timo Sirainen
tss at iki.fi
Wed Nov 6 13:00:58 EET 2013
On 6.11.2013, at 11.31, Tomasz Potega <tpotega at 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
More information about the dovecot
mailing list