]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Update pool_add_external_ref() comment
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Sat, 23 Mar 2024 11:45:58 +0000 (13:45 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Jan 2025 08:39:59 +0000 (10:39 +0200)
src/lib/mempool.h

index d80a737ddd5218cd4cce60b4cb75a6eac8313978..d7100e21cba3d54370abc15261b7e9507901ade6 100644 (file)
@@ -92,8 +92,9 @@ pool_t pool_allocfree_create_clean(const char *name);
    old_size + 1. */
 size_t pool_get_exp_grown_size(pool_t pool, size_t old_size, size_t min_size);
 
-/* Reference another memory pool in the given pool. When the pool is freed,
-   the referenced memory pools are also unreferenced. */
+/* Reference another memory pool in the given pool. This call also increases
+   the ref_pool's reference count. When the pool is freed, the referenced
+   memory pools are also unreferenced. */
 void pool_add_external_ref(pool_t pool, pool_t ref_pool);
 
 /* We require sizeof(type) to be <= UINT_MAX. This allows compiler to optimize