Fix stupid use after free.

Reported by:	@citrin