From 8ea131fc805315d79482496fddaa56ec202f0f6d Mon Sep 17 00:00:00 2001 From: Oran Agra Date: Thu, 10 Sep 2020 10:22:16 +0300 Subject: [PATCH] Fix leak in new blockedclient module API test (#7780) --- tests/modules/blockedclient.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/modules/blockedclient.c b/tests/modules/blockedclient.c index 9d59114a1..ca98281a4 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; }