Add freeAstarList function for destruct.