Skip to content

Commit

Permalink
lib-program-client: Simplify cleanup of dot input stream in program_c…
Browse files Browse the repository at this point in the history
…lient_program_input().
  • Loading branch information
stephanbosch authored and villesavolainen committed Jan 31, 2018
1 parent 2c572e4 commit c37e042
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib-program-client/program-client.c
Expand Up @@ -319,11 +319,8 @@ void program_client_program_input(struct program_client *pclient)
res = o_stream_send_istream(output, input);
switch (res) {
case OSTREAM_SEND_ISTREAM_RESULT_FINISHED:
if (pclient->set.use_dotstream &&
pclient->dot_input != NULL) {
i_stream_unref(&pclient->dot_input);
input = pclient->program_input;
}
i_stream_unref(&pclient->dot_input);
input = pclient->program_input;
break;
case OSTREAM_SEND_ISTREAM_RESULT_WAIT_INPUT:
case OSTREAM_SEND_ISTREAM_RESULT_WAIT_OUTPUT:
Expand Down

0 comments on commit c37e042

Please sign in to comment.