diff --git a/src/sds.c b/src/sds.c index d4cdef6313..2ce8758693 100644 --- a/src/sds.c +++ b/src/sds.c @@ -39,7 +39,6 @@ #include "sds.h" #include "sdsalloc.h" #include "util.h" -#include "zmalloc.h" const char *SDS_NOINIT = "SDS_NOINIT"; @@ -416,7 +415,7 @@ size_t sdsAllocSize(sds s) { char type = s[-1] & SDS_TYPE_MASK; /* SDS_TYPE_5 header doesn't contain the size of the allocation */ if (type == SDS_TYPE_5) { - return zmalloc_size(sdsAllocPtr(s)); + return s_malloc_size(sdsAllocPtr(s)); } else { return sdsHdrSize(type) + sdsalloc(s) + 1; }