deleted dynamically allocated cstr array memory