]> git.saurik.com Git - redis.git/blobdiff - src/t_set.c
fixed a memory leak in the new Set code
[redis.git] / src / t_set.c
index 01c851ba9ffe2c6d239ede95bf01a94509748d12..cb06a6a2e9ee43ba4189189da4107b341350ce83 100644 (file)
@@ -81,7 +81,7 @@ int setTypeIsMember(robj *subject, robj *value) {
 }
 
 setTypeIterator *setTypeInitIterator(robj *subject) {
-    setTypeIterator *si = zmalloc(sizeof(setIterator));
+    setTypeIterator *si = zmalloc(sizeof(setTypeIterator));
     si->subject = subject;
     si->encoding = subject->encoding;
     if (si->encoding == REDIS_ENCODING_HT) {