Fix a memory leak introduced by the skip list index cleanup.