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

Function ztryrealloc

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

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

Source from the content-addressed store, hash-verified

254
255/* Try Reallocating memory, and return NULL if failed. */
256void *ztryrealloc(void *ptr, size_t size) {
257 ptr = ztryrealloc_usable(ptr, size, NULL);
258 return ptr;
259}
260
261/* Reallocate memory or panic.
262 * '*usable' is set to the usable size if non NULL. */

Callers

nothing calls this directly

Calls 1

ztryrealloc_usableFunction · 0.85

Tested by

no test coverage detected