Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to call RedisModule_FreeString() without a context. #3496

Closed
wants to merge 1 commit into from

Conversation

yossigo
Copy link
Member

@yossigo yossigo commented Sep 10, 2016

When implementing a module data type, callbacks are made without a
RedisModuleCtx so it becomes impossible to free previously allocated
strings when necessary (e.g. on a free callback).

The other alternative is to push the context on all callbacks but it may
be reasonable to require that modules with custom data types will not
rely on auto memory for internal types.

When implementing a module data type, callbacks are made without a
RedisModuleCtx so it becomes impossible to free previously allocated
strings when necessary (e.g. on a free callback).

The other alternative is to push the context on all callbacks but it may
be reasonable to require that modules with custom data types will not
rely on auto memory for internal types.
@yossigo
Copy link
Member Author

yossigo commented Mar 14, 2019

Duplicate.

@yossigo yossigo closed this Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant