MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / zfree_no_tcache

Function zfree_no_tcache

src/zmalloc.cpp:162–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void zfree_no_tcache(void *ptr) {
163 if (ptr == NULL) return;
164 update_zmalloc_stat_free(zmalloc_size(ptr));
165 dallocx(ptr, MALLOCX_TCACHE_NONE);
166}
167#endif
168
169/* Try allocating memory and zero it, and return NULL if failed.

Callers 1

activeDefragAllocFunction · 0.85

Calls 1

zmalloc_sizeFunction · 0.85

Tested by

no test coverage detected