]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
ostream-multiplex: Unreference stream parent
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 9 Oct 2017 15:21:24 +0000 (18:21 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 9 Oct 2017 15:21:24 +0000 (18:21 +0300)
Otherwise it won't get free'd.

src/lib/ostream-multiplex.c

index 7efcd5f3bb6f94dcf156f4495bb988df89cada28..afc00f72616446e51b90f7534b1b78c5589f7012 100644 (file)
@@ -162,6 +162,7 @@ static void o_stream_multiplex_ochannel_destroy(struct iostream_private *stream)
        struct multiplex_ochannel **channelp;
        struct multiplex_ochannel *channel = (struct multiplex_ochannel*)stream;
        o_stream_multiplex_ochannel_close(stream, TRUE);
+       o_stream_unref(&channel->ostream.parent);
        if (channel->buf != NULL)
                buffer_free(&channel->buf);
        /* delete the channel */