From: Josef 'Jeff' Sipek Date: Fri, 3 Nov 2017 12:38:39 +0000 (-0400) Subject: lib: use temp var in i_stream_unref for clarity X-Git-Tag: 2.3.0.rc1~474 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4169072aebf5607b272f954fb405c838e1aa4d6;p=thirdparty%2Fdovecot%2Fcore.git lib: use temp var in i_stream_unref for clarity --- diff --git a/src/lib/istream.c b/src/lib/istream.c index 1b08d57e1a..3019d31795 100644 --- a/src/lib/istream.c +++ b/src/lib/istream.c @@ -57,12 +57,12 @@ void i_stream_unref(struct istream **stream) _stream = (*stream)->real_stream; - if (!io_stream_unref(&(*stream)->real_stream->iostream)) { + if (!io_stream_unref(&_stream->iostream)) { if (_stream->line_str != NULL) str_free(&_stream->line_str); i_stream_snapshot_free(&_stream->prev_snapshot); - i_stream_unref(&(*stream)->real_stream->parent); - io_stream_free(&(*stream)->real_stream->iostream); + i_stream_unref(&_stream->parent); + io_stream_free(&_stream->iostream); } *stream = NULL; }