This makes it clearer who needs to reference and unreference the streams.
iostream_rawlog_create_path(ctx->rawlog_path,
&ctx->input, &ctx->output);
}
- i_stream_ref(ctx->input);
- o_stream_ref(ctx->output);
return dsync_ibc_init_stream(ctx->input, ctx->output,
name, temp_prefix, ctx->io_timeout_secs);
}
ibc->ibc.v = dsync_ibc_stream_vfuncs;
ibc->input = input;
ibc->output = output;
+ i_stream_ref(ibc->input);
+ o_stream_ref(ibc->output);
ibc->name = i_strdup(name);
ibc->temp_path_prefix = i_strdup(temp_path_prefix);
ibc->timeout_secs = timeout_secs;