[dovecot-cvs] dovecot/src/lib mempool.h,1.21,1.22

tss at dovecot.org tss at dovecot.org
Wed Nov 8 20:02:36 UTC 2006


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

Modified Files:
	mempool.h 
Log Message:
Updated pool_alloconly_create_clean() comment



Index: mempool.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/mempool.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- mempool.h	8 Nov 2006 20:00:31 -0000	1.21
+++ mempool.h	8 Nov 2006 20:02:34 -0000	1.22
@@ -45,7 +45,10 @@
 /* Create a new alloc-only pool. Note that `size' specifies the initial
    malloc()ed block size, part of it is used internally. */
 pool_t pool_alloconly_create(const char *name, size_t size);
-/* Like alloconly pool, but clear the memory before freeing it. */
+/* Like alloconly pool, but clear the memory before freeing it. The idea is
+   that you could allocate memory for storing sensitive information from this
+   pool, and be sure that it gets cleared from the memory when it's no longer
+   needed. */
 pool_t pool_alloconly_create_clean(const char *name, size_t size);
 
 /* When allocating memory from returned pool, the data stack frame must be



More information about the dovecot-cvs mailing list