Skip to content

Corrects a typo in InitAlloc's name #23

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rmutil/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ char *rmalloc_strndup(const char *s, size_t n) {
* replaces all malloc functions in redis with the RM_Alloc family of functions,
* when running that code outside of redis, your app will crash. This function
* patches the RM_Alloc functions back to the original mallocs. */
void RMUTil_InitAlloc() {
void RMUtil_InitAlloc() {

RedisModule_Alloc = malloc;
RedisModule_Realloc = realloc;
Expand Down
2 changes: 1 addition & 1 deletion rmutil/alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ char *rmalloc_strndup(const char *s, size_t n);
/* This function shold be called if you are working with malloc-patched code
* ouside of redis, usually for unit tests. Call it once when entering your unit
* tests' main() */
void RMUTil_InitAlloc();
void RMUtil_InitAlloc();
#endif /* REDIS_MODULE_TARGET */

#endif /* __RMUTIL_ALLOC__ */