From 7491657a4622aa5fb6a52bea62e0ffb99721b8fa Mon Sep 17 00:00:00 2001 From: uriyage <78144248+uriyage@users.noreply.github.com> Date: Thu, 21 Nov 2024 17:07:16 +0200 Subject: [PATCH] Update src/io_threads.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Viktor Söderqvist Signed-off-by: uriyage <78144248+uriyage@users.noreply.github.com> --- src/io_threads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io_threads.c b/src/io_threads.c index 8b426eaab5..6cde68d675 100644 --- a/src/io_threads.c +++ b/src/io_threads.c @@ -505,7 +505,7 @@ int tryOffloadFreeObjToIOThreads(robj *obj) { /* We offload only the free of the ptr that may be allocated by the I/O thread. * The object itself was allocated by the main thread and will be freed by the main thread. */ - IOJobQueue_push(jq, zfree, obj->ptr); + IOJobQueue_push(jq, sdsfree, obj->ptr); obj->ptr = NULL; decrRefCount(obj);