[dovecot-cvs] dovecot/src/dict dict-server.c,1.10,1.11

cras at dovecot.org cras at dovecot.org
Sun Feb 26 12:05:06 EET 2006


Update of /var/lib/cvs/dovecot/src/dict
In directory talvi:/tmp/cvs-serv5842/dict

Modified Files:
	dict-server.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: dict-server.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/dict/dict-server.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- dict-server.c	31 Jan 2006 06:05:22 -0000	1.10
+++ dict-server.c	26 Feb 2006 10:05:04 -0000	1.11
@@ -369,8 +369,8 @@
 	}
 
 	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(dict client) failed: %m");
 



More information about the dovecot-cvs mailing list