In both cases this resulted in invalid pointers and crashes. Also was not freeing nodes or sequence data.