diff --git a/src/evict.c b/src/evict.c index d3cdaaa80..2f94f5942 100644 --- a/src/evict.c +++ b/src/evict.c @@ -342,7 +342,7 @@ size_t freeMemoryGetNotCountedMemory(void) { } } if (server.aof_state != AOF_OFF) { - overhead += sdsalloc(server.aof_buf)+aofRewriteBufferSize(); + overhead += sdsAllocSize(server.aof_buf)+aofRewriteBufferSize(); } return overhead; }