Skip to content

Commit

Permalink
Update src/eval.c
Browse files Browse the repository at this point in the history
Co-authored-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Seungmin Lee <155032684+sungming2@users.noreply.github.com>
  • Loading branch information
sungming2 and enjoy-binbin authored Nov 18, 2024
1 parent ca56990 commit c3828da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ void scriptingInit(int setup) {

/* Initialize a dictionary we use to map SHAs to scripts.
* Initialize a list we use for lua script evictions.
* Note that we duplicate the sha when adding to the lru list due to defrag
* We need to free them respectively */
* Note that we duplicate the sha when adding to the lru list due to defrag,
* and we need to free them respectively. */
lctx.lua_scripts = dictCreate(&shaScriptObjectDictType);
lctx.lua_scripts_lru_list = listCreate();
listSetFreeMethod(lctx.lua_scripts_lru_list, (void (*)(void *))sdsfree);
Expand Down

0 comments on commit c3828da

Please sign in to comment.