BUG: fix memoryleaks in datetime dtype parsing for 1.9

closes gh-4973
closes gh-4974