mov: Free an earlier allocated array if allocating a new one