Skip to content

Commit

Permalink
doveadm-server: Use i_close_fd
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and Timo Sirainen committed Oct 5, 2017
1 parent c9dd53f commit 7406574
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/doveadm/client-connection.c
Expand Up @@ -687,8 +687,7 @@ void client_connection_destroy(struct client_connection **_conn)

i_stream_destroy(&conn->input);

if (conn->fd > 0 && close(conn->fd) < 0)
i_error("close(client) failed: %m");
i_close_fd(&conn->fd);
pool_unref(&conn->pool);

doveadm_print_ostream = NULL;
Expand Down

0 comments on commit 7406574

Please sign in to comment.