Small doc fix for stream module API (#8757)
In a code example, using RedisModule_FreeString instead of RedisModule_Free makes it behave correctly regardless of whether automatic memory is used or not.
This commit is contained in:
parent
b278e44376
commit
4938052f6b
@ -3398,8 +3398,8 @@ int RM_StreamDelete(RedisModuleKey *key, RedisModuleStreamID *id) {
|
||||
* //
|
||||
* // ... Do stuff ...
|
||||
* //
|
||||
* RedisModule_Free(field);
|
||||
* RedisModule_Free(value);
|
||||
* RedisModule_FreeString(ctx, field);
|
||||
* RedisModule_FreeString(ctx, value);
|
||||
* }
|
||||
* }
|
||||
* RedisModule_StreamIteratorStop(key);
|
||||
|
Loading…
x
Reference in New Issue
Block a user