Fix cactus_realign memory leak