[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
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-index.c, 1.139,
1.140 mail-index-lock.c, 1.23, 1.24 mail-index-private.h, 1.24, 1.25
- Next message: [dovecot-cvs] dovecot/src/lib-imap imap-bodystructure.c, 1.46,
1.47 imap-bodystructure.h, 1.9, 1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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;
}
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-index.c, 1.139,
1.140 mail-index-lock.c, 1.23, 1.24 mail-index-private.h, 1.24, 1.25
- Next message: [dovecot-cvs] dovecot/src/lib-imap imap-bodystructure.c, 1.46,
1.47 imap-bodystructure.h, 1.9, 1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list