Fix some Twine locals.

Two of those are use after frees. Found by clang-tidy, fixed by me.