From 93578cbff2c679b9616a50296c0b45140dd2fcfc Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Mon, 9 Oct 2017 18:21:24 +0300 Subject: [PATCH] ostream-multiplex: Unreference stream parent Otherwise it won't get free'd. --- src/lib/ostream-multiplex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/ostream-multiplex.c b/src/lib/ostream-multiplex.c index 7efcd5f3bb..afc00f7261 100644 --- a/src/lib/ostream-multiplex.c +++ b/src/lib/ostream-multiplex.c @@ -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 */ -- 2.47.3