BUG: Fix memory leak in ndarray construction from strings (gh-2927)
Merge pull request #2928 from mwiebe/string_init_memleak

BUG: Fix memory leak in ndarray construction from strings (gh-2927)