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:
Viktor Söderqvist 2021-04-13 19:14:12 +02:00 committed by GitHub
parent b278e44376
commit 4938052f6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);