Skip to content

Commit 6e8977f

Browse files
committed
Erasing the old key to not compare random memory later
1 parent 042040a commit 6e8977f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/lua_LuaThread.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ LUA_FUNCTION(LuaThread_SetValue)
119119
}
120120
}
121121

122+
shared_table.erase(pKey);
122123
SafeDelete(pKey);
123124
SafeDelete(pVal);
124125
shared_table_mutex.Unlock();

0 commit comments

Comments
 (0)