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

Former-commit-id: f83a89f82a30d4edbd8068172bc54e0f1fe0cc25
This commit is contained in:
John Sully 2019-07-30 16:54:25 -04:00
parent a610218535
commit afa69ddcbf

View File

@ -3920,7 +3920,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);
}