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. */
| 463 | * RedisModule_Realloc(). However you should never try to free with |
| 464 | * RedisModule_Free() memory allocated with malloc() inside your module. */ |
| 465 | void RM_Free(void *ptr) { |
| 466 | zfree(ptr); |
| 467 | } |
| 468 | |
| 469 | /* Like strdup() but returns memory allocated with RedisModule_Alloc(). */ |
| 470 | char *RM_Strdup(const char *str) { |
no test coverage detected