diff --git a/tests/modules/blockedclient.c b/tests/modules/blockedclient.c index 9d59114a..ca98281a 100644 --- a/tests/modules/blockedclient.c +++ b/tests/modules/blockedclient.c @@ -46,6 +46,9 @@ void *worker(void *arg) { // Unblock client RedisModule_UnblockClient(bc, NULL); + // Free the Redis module context + RedisModule_FreeThreadSafeContext(ctx); + return NULL; }