diff --git a/src/object.c b/src/object.c index bb5f6729d..2554656a3 100644 --- a/src/object.c +++ b/src/object.c @@ -97,7 +97,7 @@ robj *dupStringObject(robj *o) { robj *createListObject(void) { list *l = listCreate(); robj *o = createObject(REDIS_LIST,l); - listSetFreeMethod(l,decrRefCount); + listSetFreeMethod(l,decrRefCountVoid); o->encoding = REDIS_ENCODING_LINKEDLIST; return o; }