BUG: fix memory leak in ndimage.label.  Closes gh-3148.
Merge pull request #3152 from rgommers/label-memleak

BUG: fix memory leak in ndimage.label.  Closes gh-3148.