Fix impossible use-after-free.

Coverity CID 30407.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>