[dovecot-cvs] dovecot/src/lib ioloop-epoll.c,1.11.2.4,1.11.2.5
tss at dovecot.org
tss at dovecot.org
Tue Nov 7 13:58:01 UTC 2006
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv16811
Modified Files:
Tag: branch_1_0
ioloop-epoll.c
Log Message:
Free all the used memory when destroying the ioloop.
Index: ioloop-epoll.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ioloop-epoll.c,v
retrieving revision 1.11.2.4
retrieving revision 1.11.2.5
diff -u -d -r1.11.2.4 -r1.11.2.5
--- ioloop-epoll.c 13 Oct 2006 22:12:51 -0000 1.11.2.4
+++ ioloop-epoll.c 7 Nov 2006 13:57:28 -0000 1.11.2.5
@@ -46,6 +46,12 @@
void io_loop_handler_deinit(struct ioloop *ioloop)
{
struct ioloop_handler_context *ctx = ioloop->handler_context;
+ struct io_list **list;
+ unsigned int i, count;
+
+ list = array_get_modifyable(&ctx->fd_index, &count);
+ for (i = 0; i < count; i++)
+ p_free(ioloop->pool, list[i]);
if (close(ctx->epfd) < 0)
i_error("close(epoll) failed: %m");
More information about the dovecot-cvs
mailing list