[dovecot-cvs] dovecot/src/lib data-stack.c,1.7,1.8
cras at procontrol.fi
cras at procontrol.fi
Tue Dec 3 15:20:36 EET 2002
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv29219/src/lib
Modified Files:
data-stack.c
Log Message:
DEBUG: Don't send shrink messages, they could cause infinite loop.
Index: data-stack.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/data-stack.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- data-stack.c 1 Dec 2002 17:58:19 -0000 1.7
+++ data-stack.c 3 Dec 2002 13:20:33 -0000 1.8
@@ -119,19 +119,9 @@
unused_block, replace it */
while (block != NULL) {
if (unused_block == NULL || block->size > unused_block->size) {
- if (unused_block != NULL) {
-#ifdef DEBUG
- i_warning("Shrinking data stack with: "
- "%"PRIuSIZE_T, unused_block->size);
-#endif
- free(unused_block);
- }
+ free(unused_block);
unused_block = block;
} else {
-#ifdef DEBUG
- i_warning("Shrinking data stack with: %"PRIuSIZE_T,
- block->size);
-#endif
free(block);
}
More information about the dovecot-cvs
mailing list