]> git.saurik.com Git - redis.git/blobdiff - src/object.c
TODO list modified, trivial change to source code
[redis.git] / src / object.c
index 4854909e0c215b400ba627722b99b587568fcfb8..772637ce050d46940140ab7bbbebd4064ec381bf 100644 (file)
@@ -11,8 +11,7 @@ robj *createObject(int type, void *ptr) {
         listDelNode(server.objfreelist,head);
         if (server.vm_enabled) pthread_mutex_unlock(&server.obj_freelist_mutex);
     } else {
-        if (server.vm_enabled)
-            pthread_mutex_unlock(&server.obj_freelist_mutex);
+        if (server.vm_enabled) pthread_mutex_unlock(&server.obj_freelist_mutex);
         o = zmalloc(sizeof(*o));
     }
     o->type = type;