Acquire the lock for modules that don't acquire it before calling like they are supposed to

Former-commit-id: 6016dd0f8b68ceeeb161a39a0d531a3cc52d78d8
This commit is contained in:
John Sully 2019-07-30 16:54:25 -04:00
parent 0df22ef9f6
commit 863ae63e2c

View File

@ -3939,7 +3939,9 @@ RedisModuleCtx *RM_GetThreadSafeContext(RedisModuleBlockedClient *bc) {
/* Release a thread safe context. */
void RM_FreeThreadSafeContext(RedisModuleCtx *ctx) {
moduleAcquireGIL(false /*fServerThread*/);
moduleFreeContext(ctx);
moduleReleaseGIL(false /*fServerThread*/);
zfree(ctx);
}