dtype decref missing in fail and success return paths