| 326 | } |
| 327 | |
| 328 | void freeListObject(robj_roptr o) { |
| 329 | if (o->encoding == OBJ_ENCODING_QUICKLIST) { |
| 330 | quicklistRelease((quicklist*)ptrFromObj(o)); |
| 331 | } else if (o->encoding == OBJ_ENCODING_ZIPLIST) { |
| 332 | zfree(ptrFromObj(o)); |
| 333 | } else { |
| 334 | serverPanic("Unknown list encoding type: %d", o->encoding); |
| 335 | } |
| 336 | } |
| 337 | |
| 338 | void freeSetObject(robj_roptr o) { |
| 339 | switch (o->encoding) { |
no test coverage detected