Fix r201205's use-after-free bug caught by sanitizer bot