]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
hash_table_clear(): Added a comment about API usage.
authorTimo Sirainen <tss@iki.fi>
Tue, 23 Apr 2013 18:08:31 +0000 (21:08 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 23 Apr 2013 18:08:31 +0000 (21:08 +0300)
src/lib/hash.h

index f0ccb67de10000e9f70c9907a64bc8177db9c018..ead59a1945dab4e05ca62994b2125c47cd8544f9 100644 (file)
@@ -68,8 +68,8 @@ void hash_table_destroy(struct hash_table **table);
 #define hash_table_destroy(table) \
        hash_table_destroy(&(*table)._table)
 /* Remove all nodes from hash table. If free_collisions is TRUE, the
-   memory allocated from node_pool is freed, or discarded with
-   alloconly pools. */
+   memory allocated from node_pool is freed, or discarded with alloconly pools.
+   WARNING: If you p_clear() the node_pool, the free_collisions must be TRUE. */
 void hash_table_clear(struct hash_table *table, bool free_collisions);
 #define hash_table_clear(table, free_collisions) \
        hash_table_clear((table)._table, free_collisions)