[dovecot-cvs] dovecot/src/deliver deliver.c,1.17,1.18
cras at dovecot.org
cras at dovecot.org
Sun Feb 26 12:05:06 EET 2006
Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv5842/deliver
Modified Files:
deliver.c
Log Message:
Added i_stream_destroy() and o_stream_destroy() and used them instead of
*_stream_unref() where possible. Fixes at least one problem with io_remove()
being called after socket was closed, which caused problems with epoll.
Index: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- deliver.c 29 Jan 2006 12:14:43 -0000 1.17
+++ deliver.c 26 Feb 2006 10:05:04 -0000 1.18
@@ -130,8 +130,8 @@
io_loop_stop(ioloop);
io_remove(conn->io);
- i_stream_unref(conn->input);
- o_stream_unref(conn->output);
+ i_stream_destroy(conn->input);
+ o_stream_destroy(conn->output);
if (close(conn->fd) < 0)
i_error("close() failed: %m");
i_free(conn);
More information about the dovecot-cvs
mailing list