MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / Alloc_Reset

Function Alloc_Reset

src/util/rmalloc.c:132–138  ·  view source on GitHub ↗

Redefine the allocator functions to use the malloc family. * Only to be used when running module code from a non-Redis * context, such as unit tests. */

Source from the content-addressed store, hash-verified

130 * Only to be used when running module code from a non-Redis
131 * context, such as unit tests. */
132void Alloc_Reset() {
133 RedisModule_Alloc = malloc;
134 RedisModule_Realloc = realloc;
135 RedisModule_Calloc = calloc;
136 RedisModule_Free = free;
137 RedisModule_Strdup = strdup;
138}

Callers 15

setupFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85

Calls

no outgoing calls

Tested by 15

setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68