[dovecot-cvs] dovecot/src/lib ioloop.c,1.46,1.47

tss at dovecot.org tss at dovecot.org
Mon Mar 26 01:32:42 EEST 2007


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

Modified Files:
	ioloop.c 
Log Message:
Don't crash when timeouts have leaked



Index: ioloop.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ioloop.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- ioloop.c	15 Mar 2007 14:38:25 -0000	1.46
+++ ioloop.c	25 Mar 2007 22:32:39 -0000	1.47
@@ -348,10 +348,8 @@
 	while (ioloop->timeouts != NULL) {
 		struct timeout *to = ioloop->timeouts;
 
-		if (!to->destroyed) {
+		if (!to->destroyed)
 			i_warning("Timeout leak: %p", (void *)to->callback);
-			timeout_remove(&to);
-		}
 		ioloop->timeouts = to->next;
 		i_free(to);
 	}



More information about the dovecot-cvs mailing list