diff --git a/src/networking.c b/src/networking.c index 7fc6917f665..5292caf6056 100644 --- a/src/networking.c +++ b/src/networking.c @@ -895,7 +895,7 @@ void sendReplyToClient(aeEventLoop *el, int fd, void *privdata, int mask) { } else { o = listNodeValue(ln); objlen = (int)sdslen(o->ptr); - objmem = zmalloc_size_sds(o->ptr); + objmem = getStringObjectSdsUsedMemory(o); if (objlen == 0) { listDelNode(c->reply,ln);