Skip to content

Commit

Permalink
ostream-multiplex: Unreference stream parent
Browse files Browse the repository at this point in the history
Otherwise it won't get free'd.
  • Loading branch information
cmouse authored and sirainen committed Oct 9, 2017
1 parent 0158d47 commit 93578cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/ostream-multiplex.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 93578cb

Please sign in to comment.