# HG changeset patch # User Aki Tuomi # Date 1507562484 -10800 # Node ID 0414602020623244b7d0234e2d376ad671fa143b # Parent 36f70fbf6d2f0932ab011197d62f7510068a0228 ostream-multiplex: Unreference stream parent Otherwise it won't get free'd. diff -r 36f70fbf6d2f -r 041460202062 src/lib/ostream-multiplex.c --- a/src/lib/ostream-multiplex.c Mon Oct 09 13:55:06 2017 +0300 +++ b/src/lib/ostream-multiplex.c Mon Oct 09 18:21:24 2017 +0300 @@ -162,6 +162,7 @@ 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 */