fixed missing free
spotted another mem leak in char array