Lines Matching refs:mem

46   } mem[1];  member
135 struct memdebug *mem; in curl_dbg_malloc() local
146 mem = (Curl_cmalloc)(size); in curl_dbg_malloc()
147 if(mem) { in curl_dbg_malloc()
148 mem->size = wantedsize; in curl_dbg_malloc()
154 mem ? (void *)mem->mem : (void *)0); in curl_dbg_malloc()
156 return (mem ? mem->mem : NULL); in curl_dbg_malloc()
162 struct memdebug *mem; in curl_dbg_calloc() local
175 mem = (Curl_ccalloc)(1, size); in curl_dbg_calloc()
176 if(mem) in curl_dbg_calloc()
177 mem->size = user_size; in curl_dbg_calloc()
182 mem ? (void *)mem->mem : (void *)0); in curl_dbg_calloc()
184 return (mem ? mem->mem : NULL); in curl_dbg_calloc()
190 char *mem; in curl_dbg_strdup() local
200 mem = curl_dbg_malloc(len, 0, NULL); /* NULL prevents logging */ in curl_dbg_strdup()
201 if(mem) in curl_dbg_strdup()
202 memcpy(mem, str, len); in curl_dbg_strdup()
206 source, line, (const void *)str, len, (const void *)mem); in curl_dbg_strdup()
208 return mem; in curl_dbg_strdup()
215 wchar_t *mem; in curl_dbg_wcsdup() local
226 mem = curl_dbg_malloc(bsiz, 0, NULL); /* NULL prevents logging */ in curl_dbg_wcsdup()
227 if(mem) in curl_dbg_wcsdup()
228 memcpy(mem, str, bsiz); in curl_dbg_wcsdup()
232 source, line, (void *)str, bsiz, (void *)mem); in curl_dbg_wcsdup()
234 return mem; in curl_dbg_wcsdup()
243 struct memdebug *mem = NULL; in curl_dbg_realloc() local
259 mem = (void *)((char *)ptr - offsetof(struct memdebug, mem)); in curl_dbg_realloc()
265 mem = (Curl_crealloc)(mem, size); in curl_dbg_realloc()
269 mem ? (void *)mem->mem : (void *)0); in curl_dbg_realloc()
271 if(mem) { in curl_dbg_realloc()
272 mem->size = wantedsize; in curl_dbg_realloc()
273 return mem->mem; in curl_dbg_realloc()
282 struct memdebug *mem; in curl_dbg_free() local
290 mem = (void *)((char *)ptr - offsetof(struct memdebug, mem)); in curl_dbg_free()
297 (Curl_cfree)(mem); in curl_dbg_free()