Fix use after free of instruction pointer.