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

Function RM_Free

src/module.cpp:465–467  ·  view source on GitHub ↗

Use like free() for memory obtained by RedisModule_Alloc() and * RedisModule_Realloc(). However you should never try to free with * RedisModule_Free() memory allocated with malloc() inside your module. */

Source from the content-addressed store, hash-verified

463 * RedisModule_Realloc(). However you should never try to free with
464 * RedisModule_Free() memory allocated with malloc() inside your module. */
465void RM_Free(void *ptr) {
466 zfree(ptr);
467}
468
469/* Like strdup() but returns memory allocated with RedisModule_Alloc(). */
470char *RM_Strdup(const char *str) {

Callers 1

RM_LoadLongDoubleFunction · 0.85

Calls 1

zfreeFunction · 0.85

Tested by

no test coverage detected