MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_allocator_membuf_free

Function acl_allocator_membuf_free

lib_acl/src/stdlib/memory/acl_allocator.c:362–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362void acl_allocator_membuf_free(const char *filename, int line,
363 ACL_ALLOCATOR *allocator, void *buf)
364{
365 size_t gross_size;
366 acl_mem_type type;
367
368 acl_default_memstat(filename, line, buf, &gross_size, NULL);
369 type = memBufFindSizeType(gross_size, NULL);
370
371 if (type != ACL_MEM_TYPE_NONE)
372 acl_allocator_mem_free(filename, line, allocator, type, buf);
373 else
374 acl_default_free(filename, line, buf);
375}
376
377int acl_allocator_pool_ifused(ACL_ALLOCATOR *allocator, acl_mem_type type)
378{

Callers 5

mempool_bench_testFunction · 0.85
mempool_freeFunction · 0.85
mempool_free_with_mutexFunction · 0.85
before_free_fnFunction · 0.85

Calls 3

acl_default_memstatFunction · 0.85
memBufFindSizeTypeFunction · 0.85
acl_allocator_mem_freeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…