[dovecot-cvs] dovecot/src/lib mempool-alloconly.c,1.27,1.28

cras at dovecot.org cras at dovecot.org
Thu Jul 8 23:24:51 EEST 2004


Update of /home/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv1281/lib

Modified Files:
	mempool-alloconly.c 
Log Message:
If p_free() frees memory, it must also zero it..



Index: mempool-alloconly.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/mempool-alloconly.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- mempool-alloconly.c	5 Jul 2004 15:01:52 -0000	1.27
+++ mempool-alloconly.c	8 Jul 2004 20:24:48 -0000	1.28
@@ -194,6 +194,7 @@
 	if (POOL_BLOCK_DATA(apool->block) +
 	    (apool->block->size - apool->block->left -
 	     apool->block->last_alloc_size) == mem) {
+		memset(mem, 0, apool->block->last_alloc_size);
 		apool->block->left += apool->block->last_alloc_size;
                 apool->block->last_alloc_size = 0;
 	}



More information about the dovecot-cvs mailing list