Skip to content
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__ */