Lines Matching refs:mem
26 void (*free)(pool_t pool, void *mem);
29 void *(*realloc)(pool_t pool, void *mem,
90 #define p_realloc_type(pool, mem, type, old_count, new_count) \
91 ((type *) p_realloc(pool, mem, \
103 p_realloc(pool_t pool, void *mem, size_t old_size, size_t new_size)
105 return pool->v->realloc(pool, mem, old_size, new_size);
109 set mem=NULL, so either one of them can be used. */
110 #define p_free(pool, mem) \
112 p_free_internal(pool, mem); \
113 (mem) = NULL; \
115 #define p_free_and_null(pool, mem) p_free(pool, mem)
117 static inline void p_free_internal(pool_t pool, void *mem)
119 pool->v->free(pool, mem);
161 void pool_system_free(pool_t pool, void *mem);