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

Function ztrycalloc

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

Try allocating memory, and return NULL if failed. */

Source from the content-addressed store, hash-verified

183
184/* Try allocating memory, and return NULL if failed. */
185void *ztrycalloc(size_t size) {
186 void *ptr = ztrycalloc_usable(size, NULL);
187 return ptr;
188}
189
190/* Allocate memory or panic.
191 * '*usable' is set to the usable size if non NULL. */

Callers 1

_dictExpandFunction · 0.85

Calls 1

ztrycalloc_usableFunction · 0.85

Tested by

no test coverage detected