aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/memorypool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/memorypool.c')
-rw-r--r--src/daemon/memorypool.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/daemon/memorypool.c b/src/daemon/memorypool.c
index cc51dd77..fa0b4d6b 100644
--- a/src/daemon/memorypool.c
+++ b/src/daemon/memorypool.c
@@ -56,7 +56,7 @@ struct MemoryPool
56 56
57/** 57/**
58 * Create a memory pool. 58 * Create a memory pool.
59 * 59 *
60 * @param max maximum size of the pool 60 * @param max maximum size of the pool
61 */ 61 */
62struct MemoryPool * 62struct MemoryPool *
@@ -133,16 +133,16 @@ MHD_pool_allocate (struct MemoryPool *pool, unsigned int size, int from_end)
133 * Reallocate a block of memory obtained from the pool. 133 * Reallocate a block of memory obtained from the pool.
134 * This is particularly efficient when growing or 134 * This is particularly efficient when growing or
135 * shrinking the block that was last (re)allocated. 135 * shrinking the block that was last (re)allocated.
136 * If the given block is not the most recenlty 136 * If the given block is not the most recenlty
137 * (re)allocated block, the memory of the previous 137 * (re)allocated block, the memory of the previous
138 * allocation may be leaked until the pool is 138 * allocation may be leaked until the pool is
139 * destroyed (and copying the data maybe required). 139 * destroyed (and copying the data maybe required).
140 * 140 *
141 * @param old the existing block 141 * @param old the existing block
142 * @param old_size the size of the existing block 142 * @param old_size the size of the existing block
143 * @param new_size the new size of the block 143 * @param new_size the new size of the block
144 * @return new address of the block, or 144 * @return new address of the block, or
145 * NULL if the pool cannot support new_size 145 * NULL if the pool cannot support new_size
146 * bytes (old continues to be valid for old_size) 146 * bytes (old continues to be valid for old_size)
147 */ 147 */
148void * 148void *