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:
parent
0df22ef9f6
commit
863ae63e2c
@ -3939,7 +3939,9 @@ RedisModuleCtx *RM_GetThreadSafeContext(RedisModuleBlockedClient *bc) {
|
|||||||
|
|
||||||
/* Release a thread safe context. */
|
/* Release a thread safe context. */
|
||||||
void RM_FreeThreadSafeContext(RedisModuleCtx *ctx) {
|
void RM_FreeThreadSafeContext(RedisModuleCtx *ctx) {
|
||||||
|
moduleAcquireGIL(false /*fServerThread*/);
|
||||||
moduleFreeContext(ctx);
|
moduleFreeContext(ctx);
|
||||||
|
moduleReleaseGIL(false /*fServerThread*/);
|
||||||
zfree(ctx);
|
zfree(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user