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. */
| 6670 | * context pointer 'ctx' only if the dictionary was created using the |
| 6671 | * context instead of passing NULL. */ |
| 6672 | void RM_FreeDict(RedisModuleCtx *ctx, RedisModuleDict *d) { |
| 6673 | if (ctx != NULL) autoMemoryFreed(ctx,REDISMODULE_AM_DICT,d); |
| 6674 | raxFree(d->rax); |
| 6675 | zfree(d); |
| 6676 | } |
| 6677 | |
| 6678 | /* Return the size of the dictionary (number of keys). */ |
| 6679 | uint64_t RM_DictSize(RedisModuleDict *d) { |
no test coverage detected