MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zcalloc

Function zcalloc

app/redis-6.2.6/src/zmalloc.c:178–182  ·  view source on GitHub ↗

Allocate memory and zero it or panic */

Source from the content-addressed store, hash-verified

176
177/* Allocate memory and zero it or panic */
178void *zcalloc(size_t size) {
179 void *ptr = ztrycalloc_usable(size, NULL);
180 if (!ptr) zmalloc_oom_handler(size);
181 return ptr;
182}
183
184/* Try allocating memory, and return NULL if failed. */
185void *ztrycalloc(size_t size) {

Callers 15

_dictExpandFunction · 0.70
createTLSConnectionFunction · 0.70
geoaddCommandFunction · 0.70
getRedisConfigFunction · 0.70
getMemoryOverheadDataFunction · 0.70

Calls 1

ztrycalloc_usableFunction · 0.85

Tested by

no test coverage detected