Free a dictionary created with RM_CreateDict(). You need to pass the * context pointer 'ctx' only if the dictionary was created using the * context instead of passing NULL. */
| 6862 | * context pointer 'ctx' only if the dictionary was created using the |
| 6863 | * context instead of passing NULL. */ |
| 6864 | void RM_FreeDict(RedisModuleCtx *ctx, RedisModuleDict *d) { |
| 6865 | if (ctx != NULL) autoMemoryFreed(ctx,REDISMODULE_AM_DICT,d); |
| 6866 | raxFree(d->rax); |
| 6867 | zfree(d); |
| 6868 | } |
| 6869 | |
| 6870 | /* Return the size of the dictionary (number of keys). */ |
| 6871 | uint64_t RM_DictSize(RedisModuleDict *d) { |
no test coverage detected